numeric_modifier

Sometimes I think I don't understand this function at all.
Okay, so my friend wants to parse through all the items there are and see what gives +item.

I through him a handy line of code, but then gave myself a nice test case.

Code:
> ash item m=to_item("idmg"); float f= numeric_modifier(m, "meat");

Returned: 0.0

No? Though maybe I was doing something wrong, so I narrowed my test to the simplest form

Code:
> ash print(numeric_modifier("meat"));

0.0
Returned: void
Sliding my gaze slightly to the right would suggest that I have +215% to my meat. So... what's up?
 
Abbreviated terms work for modtrace, but when using numeric_modifier() you always need to use the proper unabridged name for the modifiers.
 
Back
Top