diff --git a/README.md b/README.md index b3c4d08e..63e45b3f 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,7 @@ * Moved Stamin-Up to Vulture Aid's location on Buried ### Origins +* Door prices in solo now cost the same as in coop * Shovels automatically picked up * Gramophone and records automatically picked up * Der Wunderfizz: all perks have an equal chance of being obtained diff --git a/_zm_reimagined.gsc b/_zm_reimagined.gsc index 7d1b60d3..a974ff46 100644 --- a/_zm_reimagined.gsc +++ b/_zm_reimagined.gsc @@ -137,6 +137,7 @@ post_all_players_spawned() level thread wallbuy_dynamic_increase_trigger_radius(); + level thread tomb_increase_solo_door_prices(); level thread tomb_remove_shovels_from_map(); level thread tomb_zombie_blood_dig_changes(); @@ -1887,6 +1888,38 @@ borough_move_staminup_machine() use_trigger thread maps/mp/zombies/_zm_perks::electric_perks_dialog(); } +tomb_increase_solo_door_prices() +{ + if(!(is_classic() && level.scr_zm_map_start_location == "tomb")) + { + return; + } + + flag_wait( "initial_blackscreen_passed" ); + + if ( isDefined( level.is_forever_solo_game ) && level.is_forever_solo_game ) + { + a_door_buys = getentarray( "zombie_door", "targetname" ); + array_thread( a_door_buys, ::door_price_increase_for_solo ); + a_debris_buys = getentarray( "zombie_debris", "targetname" ); + array_thread( a_debris_buys, ::door_price_increase_for_solo ); + } +} + +door_price_increase_for_solo() +{ + self.zombie_cost += 250; + + if ( self.targetname == "zombie_door" ) + { + self set_hint_string( self, "default_buy_door", self.zombie_cost ); + } + else + { + self set_hint_string( self, "default_buy_debris", self.zombie_cost ); + } +} + tomb_remove_weighted_random_perks() { if(!(is_classic() && level.scr_zm_map_start_location == "tomb"))