2026-08-15 10:12:33 +02:00
|
|
|
class_name VesselGasBomberComponent
|
2026-08-16 21:38:07 +02:00
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
|
2026-08-16 21:38:07 +02:00
|
|
|
func _init() -> void:
|
|
|
|
|
cooldown_duration = 5.0
|
2026-08-15 10:12:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
func consume_shot(duration: float) -> bool:
|
2026-08-16 21:38:07 +02:00
|
|
|
return _begin_cooldown(duration)
|
2026-08-15 10:41:24 +02:00
|
|
|
|
|
|
|
|
|
2026-08-16 21:38:07 +02:00
|
|
|
func _ready_color() -> Color: return READY_COLOR
|
|
|
|
|
func _cooling_color() -> Color: return COOLING_COLOR
|