From 33d615700be7b221c6199169d0f985d2684217c8 Mon Sep 17 00:00:00 2001 From: brausjonas Date: Sat, 4 Mar 2023 02:38:59 +0100 Subject: [PATCH] Coins not sync fix --- FlufflParty/.idea/.idea.FlufflParty/.idea/workspace.xml | 4 ++-- FlufflParty/Assets/Scripts/Client.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/FlufflParty/.idea/.idea.FlufflParty/.idea/workspace.xml b/FlufflParty/.idea/.idea.FlufflParty/.idea/workspace.xml index 96f54da..0096d22 100644 --- a/FlufflParty/.idea/.idea.FlufflParty/.idea/workspace.xml +++ b/FlufflParty/.idea/.idea.FlufflParty/.idea/workspace.xml @@ -54,7 +54,7 @@ } - diff --git a/FlufflParty/Assets/Scripts/Client.cs b/FlufflParty/Assets/Scripts/Client.cs index 68d127a..cf6cf17 100644 --- a/FlufflParty/Assets/Scripts/Client.cs +++ b/FlufflParty/Assets/Scripts/Client.cs @@ -227,6 +227,7 @@ public class Client : MonoBehaviour ((NoPlayablePlayer)players[job.data[1]]).BuyStar(); break; case 9: + players[job.data[1]].AddCoins(-items[job.data[3]].Cost); players[job.data[1]].AddItem(items[job.data[3]]); break; case 126: