feat: Introduce core game systems for special tile effects, power-up management, player movement, and initial UI screens.
This commit is contained in:
@@ -155,11 +155,15 @@ func use_special_effect() -> bool:
|
||||
if not can_use_special():
|
||||
return false
|
||||
|
||||
# Restriction: Cannot use attack mode while carrying a Tekton
|
||||
# Restriction: Cannot use attack mode while carrying a Tekton or in Ghost mode
|
||||
if player.is_carrying_tekton:
|
||||
NotificationManager.send_message(player, "Cannot enter Attack Mode while carrying a Tekton!", NotificationManager.MessageType.WARNING)
|
||||
return false
|
||||
|
||||
if player.get("is_invisible"):
|
||||
NotificationManager.send_message(player, "Cannot enter Attack Mode while in Ghost mode!", NotificationManager.MessageType.WARNING)
|
||||
return false
|
||||
|
||||
# Enable Attack Mode explicitly
|
||||
player.is_attack_mode = true
|
||||
# Do NOT consume boost here. Boost acts as "fuel" for the attacks.
|
||||
|
||||
Reference in New Issue
Block a user