We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dadfbd0 + e413c36 commit 03d5161Copy full SHA for 03d5161
scripts_src/sanfran/fcdrfung.ssl
@@ -307,17 +307,15 @@ procedure Node001 begin
307
end
308
309
procedure NodeHowMuch begin
310
- variable val;
311
-
312
- val := ((dude_cur_hits - dude_max_hits) / -dude_max_hits) * 100;
+ variable hpPercent := dude_cur_hits * 100 / dude_max_hits;
313
314
if (Is_Crippled(dude_obj)) then
315
call Node011;
316
- else if (val >= 90) then
+ else if (hpPercent >= 90) then
317
call Node007;
318
- else if (val >= 60) then
+ else if (hpPercent >= 60) then
319
call Node008;
320
- else if (val >= 35) then
+ else if (hpPercent >= 35) then
321
call Node009;
322
else
323
call Node010;
0 commit comments