Bug - Not A Bug Suddenly "modifier" is a reserved word

Aventuristo

Member
(I don't really know if this is a bug.) At least, as of v27456, so new it hasn't yet been described in the Github Changes forum, modifier is a reserved word in Ash. That broke ChIT, and one of my unpublished scripts. I can change my code, but I'm curious: What's going on with modifier?
 

Ryo_Sangnoir

Developer
Staff member
I've added a $modifier type, that you can use as $modifier[Meat Drop] or $modifier[Four Songs] (for example), to use in functions like numeric_modifier(item, modifier) or effect_modifier and so on.

I've also made a function split_modifiers(string) that takes a $modifier[Modifiers] string and splits it into a map of modifiers to strings.
 

Aventuristo

Member
Thanks. (I didn't think it was really a bug, but I had to put something when posting.) Now I have to modify my vim syntax colorer. :) And my script that builds a SQL database of KoL entities.
 
Top