Prozentuale Coins Trap (10%)
This commit is contained in:
+13
-13
@@ -34,22 +34,22 @@
|
|||||||
<option name="hideEmptyMiddlePackages" value="true" />
|
<option name="hideEmptyMiddlePackages" value="true" />
|
||||||
<option name="showLibraryContents" value="true" />
|
<option name="showLibraryContents" value="true" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent"><![CDATA[{
|
<component name="PropertiesComponent">{
|
||||||
"keyToString": {
|
"keyToString": {
|
||||||
"Discover.Launch.Via.Unity": "true",
|
"Discover.Launch.Via.Unity": "true",
|
||||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||||
"WebServerToolWindowFactoryState": "false",
|
"WebServerToolWindowFactoryState": "false",
|
||||||
"vue.rearranger.settings.migration": "true"
|
"vue.rearranger.settings.migration": "true"
|
||||||
},
|
},
|
||||||
"keyToStringList": {
|
"keyToStringList": {
|
||||||
"rider.external.source.directories": [
|
"rider.external.source.directories": [
|
||||||
"C:\\Users\\braus\\AppData\\Roaming\\JetBrains\\Rider2022.3\\resharper-host\\DecompilerCache",
|
"C:\\Users\\braus\\AppData\\Roaming\\JetBrains\\Rider2022.3\\resharper-host\\DecompilerCache",
|
||||||
"C:\\Users\\braus\\AppData\\Roaming\\JetBrains\\Rider2022.3\\resharper-host\\SourcesCache",
|
"C:\\Users\\braus\\AppData\\Roaming\\JetBrains\\Rider2022.3\\resharper-host\\SourcesCache",
|
||||||
"C:\\Users\\braus\\AppData\\Local\\Symbols\\src"
|
"C:\\Users\\braus\\AppData\\Local\\Symbols\\src"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}]]></component>
|
}</component>
|
||||||
<component name="RunManager" selected="Attach to Unity Editor.Attach to Unity Editor">
|
<component name="RunManager" selected="Attach to Unity Editor.Attach to Unity Editor">
|
||||||
<configuration name="Standalone Player" type="RunUnityExe" factoryName="Unity Executable">
|
<configuration name="Standalone Player" type="RunUnityExe" factoryName="Unity Executable">
|
||||||
<option name="EXE_PATH" value="$USER_HOME$/OneDrive/Desktop/Build\FlufflParty.exe" />
|
<option name="EXE_PATH" value="$USER_HOME$/OneDrive/Desktop/Build\FlufflParty.exe" />
|
||||||
|
|||||||
@@ -177,8 +177,9 @@ public class NoPlayablePlayer : Player
|
|||||||
|
|
||||||
if(t.target.index != index)
|
if(t.target.index != index)
|
||||||
{
|
{
|
||||||
AddCoins(-3);
|
int coinsAmount = (int)(coins * 0.1f);
|
||||||
t.target.AddCoins(3);
|
AddCoins(-coinsAmount);
|
||||||
|
t.target.AddCoins(coinsAmount);
|
||||||
currentField.placedItem = null;
|
currentField.placedItem = null;
|
||||||
Destroy(t.gameObject);
|
Destroy(t.gameObject);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -180,9 +180,9 @@ public class PlayablePlayer : Player
|
|||||||
|
|
||||||
if(t.target.index != index)
|
if(t.target.index != index)
|
||||||
{
|
{
|
||||||
AddCoins(-3);
|
int coinsAmount = (int)(coins * 0.1f);
|
||||||
Debug.Log(t.name);
|
AddCoins(-coinsAmount);
|
||||||
t.target.AddCoins(3);
|
t.target.AddCoins(coinsAmount);
|
||||||
currentField.placedItem = null;
|
currentField.placedItem = null;
|
||||||
Destroy(t.gameObject);
|
Destroy(t.gameObject);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user