1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 15:17:57 -05:00

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
This commit is contained in:
Jbleezy
2022-01-18 19:16:04 -08:00
parent a5dd0494e5
commit 14553567be

View File

@ -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" );