From 14553567bef213dca61e0ec960f8f8bc2180bf00 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Tue, 18 Jan 2022 19:16:04 -0800 Subject: [PATCH] Buildables: cost changes Turbine: decrease cost from 1000 to 500 Jet Gun: increase cost from 1000 to 5000 Sliquifier: increase cost from 1000 to 5000 --- scripts/zm/_zm_reimagined.gsc | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/scripts/zm/_zm_reimagined.gsc b/scripts/zm/_zm_reimagined.gsc index 37c46da1..f7b8eb04 100644 --- a/scripts/zm/_zm_reimagined.gsc +++ b/scripts/zm/_zm_reimagined.gsc @@ -2519,7 +2519,7 @@ buildbuildable( buildable, craft ) if ( isDefined( buildable ) || stub.persistent != 3 ) { displayname = stub get_equipment_display_name(); - stub.cost = 1000; + stub.cost = stub get_equipment_cost(); stub.trigger_hintstring = "Hold ^3[{+activate}]^7 for " + displayname + " [Cost: " + stub.cost + "]"; stub.trigger_func = ::buildable_place_think; @@ -2593,6 +2593,24 @@ get_equipment_display_name() } } +get_equipment_cost() +{ + if (self.equipname == "turbine") + { + return 500; + } + else if (self.equipname == "jetgun_zm") + { + return 5000; + } + else if (self.equipname == "slipgun_zm") + { + return 5000; + } + + return 1000; +} + buildable_place_think() { self endon( "kill_trigger" );