test
This commit is contained in:
AliIbnAbiTalib
2023-04-11 14:20:18 +02:00
parent dd48079cd7
commit ea78bc92ac
2 changed files with 8 additions and 3 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="f0abe486-ee58-49bd-ad63-04a8b3fc78ec" name="Changes" comment="" /> <list default="true" id="f0abe486-ee58-49bd-ad63-04a8b3fc78ec" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/.idea.FlufflParty/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.FlufflParty/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Assets/Scripts/Players/PlayablePlayer.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Scripts/Players/PlayablePlayer.cs" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -108,7 +108,7 @@ public class PlayablePlayer : Player
jumpRequest = true; jumpRequest = true;
wurfelt = true; wurfelt = true;
wurfelZahl = Random.Range(1, 7); wurfelZahl = Random.Range(4, 4);
switch (activeItem) switch (activeItem)
{ {
@@ -210,15 +210,17 @@ public class PlayablePlayer : Player
AddCoins(-3); AddCoins(-3);
break; break;
case 2: //pinkes Feld case 2: //pinkes Feld
int randyPinkField = Random.Range(1, 4); int randyPinkField = Random.Range(1, 1);
int tempCurrentItems = -1; int tempCurrentItems = -1;
switch (randyPinkField) switch (randyPinkField)
{ {
case 1: case 1:
client.SendCoinFieldAction(0);
int tempAddCoins = Random.Range(3, 6); int tempAddCoins = Random.Range(3, 6);
AddCoins(tempAddCoins); AddCoins(tempAddCoins);
break; break;
case 2: case 2:
client.SendCoinFieldAction(1);
int tempLoseCoins = Random.Range(3, 6); int tempLoseCoins = Random.Range(3, 6);
AddCoins(tempLoseCoins); AddCoins(tempLoseCoins);
break; break;