Skip to content

Commit 2dc9239

Browse files
perf: Move reward function
1 parent b52d902 commit 2dc9239

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/scr_ancient_ruins/scr_ancient_ruins.gml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ function scr_ruins_combat_end() {
287287
}
288288
}
289289
}
290+
291+
scr_ruins_reward(_star,location_id,self);
290292
} else if (obj_ground_mission.defeat == 1) {
291293
var dice=d100_roll();
292294

@@ -358,9 +360,4 @@ function scr_ruins_combat_end() {
358360
}
359361
}
360362
}
361-
362-
if (obj_ground_mission.defeat=0) {
363-
scr_ruins_reward(_star,location_id,self);
364-
}
365-
366363
}

0 commit comments

Comments
 (0)