zarqon
Well-known member
The Lost Glasses reduce monster defense by 15%. This causes my combat scripts to behave badly during muscle runs with the glasses equipped, because calling monster_defense() returns the nonadjusted value. Of course, Manuel (and thus also mafia) reports the glasses-reduced value if he's learned the monster, but for players without Manuel or monsters he has not yet learned, monster_defense() reporting the nonadjusted value leads BatBrain to make wasteful decisions.
Although I'm in a run and couldn't test such pleasantly large/round numbers, here are some figures. A/B -> C, where A = base defense, B = A+ML, and C = glasses-adjusted defense revealed by Manuel. C sometimes has a range, due to ML variance. Ranges given or absent are based on a very limited sample size and should not be taken as definitive ranges, simply observed ranges.
So the -15% is applied after ML adjustments, but before any barrrnacle-deleveling (some of those numbers were the same with or without a barrrnacle).
I and all BatBrain-powered script users would happy if mafia could account for these glasses for non-Manuel-informed monster stats.
That seems like something that mafia should fix. Do The Lost Glasses reduce the initial defense by 15% or the current "effective" defense? For example, if something starts with 1000 (850) defense, would reducing its defense by 100 bring it down to 750 or 765?
Although I'm in a run and couldn't test such pleasantly large/round numbers, here are some figures. A/B -> C, where A = base defense, B = A+ML, and C = glasses-adjusted defense revealed by Manuel. C sometimes has a range, due to ML variance. Ranges given or absent are based on a very limited sample size and should not be taken as definitive ranges, simply observed ranges.
Code:
creepy clown 18/28 -> 23
scary clown 17/27 -> 22
disease in-a-box 16/26 -> 22
bugbear-in-the-box 16/26 -> 22
lemon-in-the-box 15/25 -> 21
g imp 41/51 -> 43-44
demoninja 27/37 -> 31-32
l imp 39/49 -> 41-42
fallen archfiend 45/55 -> 45-47
g imp 41/51 -> 44
p imp 37/47 -> 39
hellion 46/56 -> 47
w imp 36/46 -> 38-39
ch imp 55/55 -> 45-48
pr imp 54/54 -> 45-47
bl imp 58/58 -> 49
bl imp 58/62 -> 54
So the -15% is applied after ML adjustments, but before any barrrnacle-deleveling (some of those numbers were the same with or without a barrrnacle).
I and all BatBrain-powered script users would happy if mafia could account for these glasses for non-Manuel-informed monster stats.