diff options
author | David <david003@gmx.net> | 2022-07-17 15:58:16 +0200 |
---|---|---|
committer | David <david003@gmx.net> | 2022-07-17 15:58:16 +0200 |
commit | ddbcd54013ac76016c39f76394654c4d1451c662 (patch) | |
tree | 8cf94f3cdfe01a1068ab91dd0192a988e24022b6 /godot/scenes/Die.gd | |
parent | 7c9aec177476c7aaa45b98ace88433caa1e80006 (diff) | |
download | 2022-ddbcd54013ac76016c39f76394654c4d1451c662.tar.gz 2022-ddbcd54013ac76016c39f76394654c4d1451c662.tar.bz2 2022-ddbcd54013ac76016c39f76394654c4d1451c662.zip |
display buff text
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() |