summaryrefslogtreecommitdiff
path: root/game-over.gd
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-11-18 01:29:47 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-11-18 01:29:47 +0100
commitace8b97fba8a9e4b17517e5ac71958dbe21b6ba8 (patch)
treeec386fc966f2c1c35b93a9124051b964c1408d95 /game-over.gd
parent2e0d47525ceb7cd9e6905860eb15f57132e6c9a0 (diff)
downloadnj26-ace8b97fba8a9e4b17517e5ac71958dbe21b6ba8.tar.gz
Only add 1 point if non-null killer + potential draw
Previously, adding 5 points to the cat killer unbalanced the game way too much, making the initial box stacking mechanic almost useless.
Diffstat (limited to 'game-over.gd')
-rw-r--r--game-over.gd14
1 files changed, 8 insertions, 6 deletions
diff --git a/game-over.gd b/game-over.gd
index 6789c67..45240d0 100644
--- a/game-over.gd
+++ b/game-over.gd
@@ -11,14 +11,16 @@ signal go_back
func set_winner(green_points, pink_points, killer_team):
var bp = green_points
var pp = pink_points
+ var bonus = 1
if killer_team != null:
- if killer_team == team.Team.GREEN:
- bp += 5
- $CanvasLayer/extra_bp.visible = true
- elif killer_team == team.Team.PINK:
- pp += 5
- $CanvasLayer/extra_pp.visible = true
+ if bp == pp:
+ if killer_team == team.Team.GREEN:
+ bp += 1
+ $CanvasLayer/extra_bp.visible = true
+ elif killer_team == team.Team.PINK:
+ pp += 1
+ $CanvasLayer/extra_pp.visible = true
$win.play()