From cc42b5a4a663ca5ced507ceed1d7c1ddc6af6c32 Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Sun, 17 May 2026 02:49:16 -0400 Subject: [PATCH] Tax --- game/game.go | 2 +- game/tax.go | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 game/tax.go diff --git a/game/game.go b/game/game.go index a40b223..b3b35fb 100644 --- a/game/game.go +++ b/game/game.go @@ -63,7 +63,7 @@ func RollDice() { ProcessMovement() ProcessGo() - // ProcessTax() + ProcessTax() ProcessOwnedColors() ProcessOwnedUtility() diff --git a/game/tax.go b/game/tax.go new file mode 100644 index 0000000..3c5213a --- /dev/null +++ b/game/tax.go @@ -0,0 +1,8 @@ +package game + +func ProcessTax() { + for _, playerID := range TaxVisitors { + taxID := SpaceToTaxSpace[Users[playerID].CurrentSpaceID] + AdjustPlayerMoney(playerID, -TaxSpaces[taxID].Amount) + } +} -- 2.54.0