Anonymous | Login | 2024-04-18 16:15 CEST |
Main | My View | View Issues | Change Log | Wiki | Tavern | News |
Viewing Issue Simple Details [ Jump to Notes ] [ Wiki ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||||
0009926 | [DCSS] Bug Report | minor | always | 2015-08-26 23:37 | 2015-10-26 16:18 | ||||||||
Reporter | Le_Nerd | View Status | public | ||||||||||
Assigned To | Medar | ||||||||||||
Priority | normal | Resolution | done | ||||||||||
Status | resolved | Product Branch | 0.17 ancient branch | ||||||||||
Summary | 0009926: Unify search terms. | ||||||||||||
Description |
As per https://crawl.develz.org/tavern/viewtopic.php?f=8&t=17465. [^] Currently the search function does not work reliably with one search term for all items who have the desired quality. I propose to get rid of these cases. Currently known to me: Search for rcorr will give artifacts with rcorr, but not amulet of corrosion resistance. Search for mr+ will give artifacts with mr+, but not ring of protection from magic. |
||||||||||||
Additional Information | |||||||||||||
Tags | No tags attached. | ||||||||||||
Attached Files | |||||||||||||
|
Notes | |
(0029428) neil (administrator) 2015-08-26 23:48 |
I was going to suggest searching by the descriptive string instead, but even that is not consistent, and it doesn't work anyway: Cloak of MR: "It increases its wearer's resistance to enchantments." Ring of protection from magic: "This ring increases its wearer's resistance to hostile enchantments." Artefact with MR: "It affects your resistance to hostile enchantments." But then ctrl-f resistance.*enchantments doesn't match the cloak or ring :( |
(0029429) neil (administrator) 2015-08-26 23:54 edited on: 2015-08-26 23:56 |
I guess the solution would be to have dat/clua/stash.lua add prefixes based on the pseudo-inscriptions for the various egos/ring types (since you wouldn't want to actually have pseudo-inscriptions on every ego item and piece of jewellery). But I don't know if clua is actually able to get the subtype or brand in all relevant cases. It could be done on the C++ side from stash_annotate_item instead. It would also be nice if menu prefixes and stash search prefixes were unified, so that the new prefixes could be used for menu colouring, too (and so that you could do things like ctrl-f unidentified). |
(0029672) Medar (developer) 2015-10-26 15:07 |
I worked on this a month ago, hopefully fixed by the following commits: https://github.com/crawl/crawl/commit/0b143305fb0e284fc5a5200d0e5152500f18b778 [^] https://github.com/crawl/crawl/commit/545a7878cba4468dedc080490688276bdae30088 [^] https://github.com/crawl/crawl/commit/3a44883a60f4e0775a95a4beef72f276f25eb5ff [^] If there are still cases where things don't work as expected, please open a new bug report. |
(0029673) Le_Nerd (reporter) 2015-10-26 16:18 |
Done. https://crawl.develz.org/mantis/view.php?id=10033 [^] |
Mantis 1.1.8[^] Copyright © 2000 - 2009 Mantis Group |