20 lines
539 B
GDScript
20 lines
539 B
GDScript
extends Upgrade
|
|
class_name EngineManeuverabilityUpgrade
|
|
|
|
@export var modifier := 1.8
|
|
|
|
func _init(tier: int = 1):
|
|
if tier < 5:
|
|
unlocks.append(EngineManeuverabilityUpgrade.new(tier + 1))
|
|
self.tier = tier
|
|
name = "Engine Maneuverability Increase - Tier %s" % ['I','II','III','IV','V'][tier - 1]
|
|
description = "Increases the turning speed of your rocket"
|
|
cost = {
|
|
"star": (tier) * 15 - 5
|
|
}
|
|
|
|
func activate_upgrade() -> bool:
|
|
if not super(): return false
|
|
DataHandler.game_data.engine_maneuverability_modifier *= modifier
|
|
return true
|