Initial commit (1/2)
This commit is contained in:
commit
3411c5796d
66 changed files with 2261 additions and 0 deletions
9
scenes/menus/BuyMenuTurbo.gd
Normal file
9
scenes/menus/BuyMenuTurbo.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
extends BuyMenuButton
|
||||
|
||||
@export var TurboAmount : float = 1000
|
||||
|
||||
func bought_action():
|
||||
if PlayerShip.Hull.Fuel == PlayerShip.Hull.MaxFuel: PlayerShip.Money += Price
|
||||
else:
|
||||
if PlayerShip.Hull.Fuel + TurboAmount > PlayerShip.Hull.MaxFuel: PlayerShip.Hull.Fuel = PlayerShip.Hull.MaxFuel
|
||||
else: PlayerShip.Hull.Fuel += TurboAmount
|
||||
Loading…
Add table
Add a link
Reference in a new issue