mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 23:57:59 -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:
@ -2519,7 +2519,7 @@ buildbuildable( buildable, craft )
|
|||||||
if ( isDefined( buildable ) || stub.persistent != 3 )
|
if ( isDefined( buildable ) || stub.persistent != 3 )
|
||||||
{
|
{
|
||||||
displayname = stub get_equipment_display_name();
|
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_hintstring = "Hold ^3[{+activate}]^7 for " + displayname + " [Cost: " + stub.cost + "]";
|
||||||
stub.trigger_func = ::buildable_place_think;
|
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()
|
buildable_place_think()
|
||||||
{
|
{
|
||||||
self endon( "kill_trigger" );
|
self endon( "kill_trigger" );
|
||||||
|
Reference in New Issue
Block a user