Skip to content

Commit 03d5161

Browse files
committed
Merge branch 'master' into 2.4_Lite
2 parents dadfbd0 + e413c36 commit 03d5161

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

scripts_src/sanfran/fcdrfung.ssl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,17 +307,15 @@ procedure Node001 begin
307307
end
308308

309309
procedure NodeHowMuch begin
310-
variable val;
311-
312-
val := ((dude_cur_hits - dude_max_hits) / -dude_max_hits) * 100;
310+
variable hpPercent := dude_cur_hits * 100 / dude_max_hits;
313311

314312
if (Is_Crippled(dude_obj)) then
315313
call Node011;
316-
else if (val >= 90) then
314+
else if (hpPercent >= 90) then
317315
call Node007;
318-
else if (val >= 60) then
316+
else if (hpPercent >= 60) then
319317
call Node008;
320-
else if (val >= 35) then
318+
else if (hpPercent >= 35) then
321319
call Node009;
322320
else
323321
call Node010;

0 commit comments

Comments
 (0)