Feature consistent returns from to_X functions

ASH's to_kolType() have a range of different behaviors.

to_effect, to_familiar, and to_skill work absolutely marvelously, they each take the input and do some crazy fuzzy matching to get a result.

But when I go to get the same power from others, I'm left with other results.

to_location, alone in it's behavior, drops a list of potential matches, but ultimately it returns that no match is found. (well, multiple, but to the same end effect)

to_class, to_element, to_item, to_monster, to_slot, and to_stat all just... fail. No result at all.

Could we (if it's not a different boatload of work for each of the functions) get the same logic for all of them that we get for the familiars, skills, and effects?
Barring giving them all the treatment, it'd be really useful if at least Monster behaved this way.

EDIT: Or, even more versatile, access to the fuzzy matcher itself?
Like...
type fuzzy(string, type[string]);
or just
string fuzzy(string, boolean[string]);
 
Last edited:
Got bored and decided to try this out myself.
So far got these two done, and tested, but it's late and I should sleep. I'll work on the rest another day.
 

Attachments

  • toLocationPatch.diff
    820 bytes · Views: 30
  • toMonsterPatch.diff
    538 bytes · Views: 33
Top