From d9da99e0a076712533d9fc1ccb6a18d02f49218f Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sun, 23 Feb 2020 22:30:34 -0800 Subject: [PATCH] Origins: decreased soul box kill requirement --- README.md | 3 ++- _zm_reimagined.gsc | 32 +++++++++++++++++++++++++++----- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 38231ce5..53b474c7 100644 --- a/README.md +++ b/README.md @@ -125,4 +125,5 @@ ### Origins * Shovels automatically picked up * Gramophone and records automatically picked up -* Der Wunderfizz: all perks have an equal chance of being obtained \ No newline at end of file +* Der Wunderfizz: all perks have an equal chance of being obtained +* Soul boxes: decreased kill requirement from 30 to 20 \ No newline at end of file diff --git a/_zm_reimagined.gsc b/_zm_reimagined.gsc index 7c1a970e..e71f7082 100644 --- a/_zm_reimagined.gsc +++ b/_zm_reimagined.gsc @@ -93,6 +93,8 @@ post_all_players_spawned() buried_turn_power_on(); + tomb_soul_box_changes(); + //disable_pers_upgrades(); // TODO level thread buildbuildables(); @@ -1411,17 +1413,37 @@ tomb_give_shovel() level setclientfield( "shovel_player" + n_player, 1 ); } -test() +tomb_soul_box_changes() { - while (!IsDefined(level.staminup_struct)) + if(!(is_classic() && level.scr_zm_map_start_location == "tomb")) { - wait 0.05; + return; } + a_boxes = getentarray( "foot_box", "script_noteworthy" ); + array_thread( a_boxes, ::tomb_soul_box_decrease_kill_requirement ); +} + +tomb_soul_box_decrease_kill_requirement() +{ + self endon( "box_finished" ); + + while (1) + { + self waittill( "soul_absorbed" ); + + wait 0.05; + + self.n_souls_absorbed += 10; + + self waittill( "robot_foot_stomp" ); + } + } + +test() +{ while(1) { - iprintlnbold("distance: " + Distance(self.origin, level.staminup_struct.origin)); - wait 1; } } \ No newline at end of file