Feature Accessing `zone` effects listed in `modtrace` with `numericModifier`

Big Money Sylvia

New member
I want to isolate the shadow-rift item drop penalty (so my last location visited does not affect projected turncount for the CS item-drop test).

Modtrace shows it as a zone-based modifier:
Code:
modtrace item
type source Item Drop Item Drop Penalty Sporadic Item Drop
Skill Powers of Observatiogn +10.00 = +10.00
Skill 20/20 Vision +10.00 = +20.00
Skill Object Quasi-Permanence +10.00 = +30.00
Skill Mad Looting Skillz +20.00 = +50.00
Skill Thief Among the Honorable +5.00 = +55.00
Effect Buzzed on Distillate +110.00 = +165.00
Effect Singer's Faithful Ocelot +10.00 = +175.00
Effect Fat Leon's Phat Loot Lyric +20.00 = +195.00
Zone Shadow Rift -156.00 = +39.00

I was hoping numeric_modifier might capture this, but it does not, at least not in the way that I'd hoped:

Code:
ash numeric_modifier($location[Shadow Rift], "Item Drop");
returns 0.
 

Ryo_Sangnoir

Developer
Staff member
Try:
Code:
ash numeric_modifier("Zone:Shadow Rift", $modifier[Item Drop])

You could also
Code:
set_location($location[none]);
to avoid the zone modifier entirely.
 
Top