Bug Evaluated Modifiers with [brackets]

ckb

Minion
Staff member
Generally, in modifiers.txt, expressions in brackets represent variables that get evaluated based on character state. This works:

> ash string_modifier($item[depleted Grimacite ninja mask],"Modifiers")
Returned: Moxie Percent: [5*G], PvP Fights: [G], Last Available: "2011-12", Familiar Effect: "1xBarrr, 1xFairy, cap 25"

> ash string_modifier($item[depleted Grimacite ninja mask],"Evaluated Modifiers")
Returned: Moxie Percent: +20, PvP Fights: +4, Last Available: "2011-12", Familiar Effect: "1xBarrr, 1xFairy, cap 25"


For some items with ambiguous effects or skills, we have represented these by effect ID or Skill ID in brackets, but this messes up the Evaluated version of the modifier:

> ash string_modifier($item[red-and-green sweater],"Modifiers")
Returned: Last Available: "2009-12", Conditional Skill (Equipped): "[7094]Static Shock"

> ash string_modifier($item[red-and-green sweater],"Evaluated Modifiers")
Returned: Last Available: "2009-12", Conditional Skill (Equipped): +7094


> ash string_modifier($item[chocolate bath ball],"Modifiers")
Returned: Effect: "[800]Chocolate Reign", Effect Duration: 10, Last Available: "2011-01"

> ash string_modifier($item[chocolate bath ball],"Evaluated Modifiers")
Returned: Effect: +800, Effect Duration: 10, Last Available: "2011-01"
 
Back
Top