diff options
Diffstat (limited to 'godot/scenes/Die.gd')
-rw-r--r-- | godot/scenes/Die.gd | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/godot/scenes/Die.gd b/godot/scenes/Die.gd index 121f27d..b6b9b9e 100644 --- a/godot/scenes/Die.gd +++ b/godot/scenes/Die.gd @@ -240,9 +240,20 @@ func ball_revert(): $BallShape.set_process(false) $BallShape.disabled = true - +func buff_text(): + match curr_buff: + buff.ball: + return "" + buff.bounce: + return "You're bouncy!" + buff.phase: + return "WooOOoOO you can phase through walls" + buff.gravity: + return "Warning, Low gravity!" + return "" func revert_current_buff(): + $PowerUI/LabelBuff.text = "" match curr_buff: buff.ball: ball_revert() @@ -254,6 +265,7 @@ func revert_current_buff(): low_gravity_revert() func apply_buff(): + $PowerUI/LabelBuff.text = buff_text() match curr_buff: buff.ball: ball() |