spaceship/VesselGasBomberComponent.gd

19 lines
443 B
GDScript3
Raw Normal View History

2026-08-15 10:12:33 +02:00
class_name VesselGasBomberComponent
extends "res://VesselCooldownFillComponent.gd"
2026-08-15 04:45:15 +02:00
var capability_id := "gas_bomber"
2026-08-15 10:12:33 +02:00
const READY_COLOR := Color(1.0, 0.25, 0.78)
const COOLING_COLOR := Color(0.38, 0.16, 0.32)
func _init() -> void:
cooldown_duration = 5.0
2026-08-15 10:12:33 +02:00
func consume_shot(duration: float) -> bool:
return _begin_cooldown(duration)
2026-08-15 10:41:24 +02:00
func _ready_color() -> Color: return READY_COLOR
func _cooling_color() -> Color: return COOLING_COLOR