When the "hatter" CLI command was added, the notes of the mad hatter effects were changed in statuseffects.txt, which broke this script.
I still use it because of the handy shortcuts (meat, ml, %spell etc...). If anyone else wants to use it, find this function:
and replace it with:
I still use it because of the handy shortcuts (meat, ml, %spell etc...). If anyone else wants to use it, find this function:
PHP:
effect[int] hatter_effect_map(){
effect[int]buffs;
foreach num in hatter_effects(){
matcher chars = create_matcher("(\\d+)", num.to_effect().note);
chars.find();
buffs[chars.group(1).to_int()] = num.to_effect();
}
return buffs;
}
PHP:
effect[int] hatter_effect_map(){
effect[int]buffs;
foreach num in hatter_effects(){
foreach str, b in num.to_effect().all{
matcher chars = create_matcher("(\\d+)", str);
chars.find();
buffs[chars.group(1).to_int()] = num.to_effect();
break;
}
}
return buffs;
}