Skip to content

Commit acfd9eb

Browse files
committed
Fix bonuses.
1 parent 7e1b252 commit acfd9eb

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

examples/3d-bomberman/3d-bomberman.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2243,8 +2243,8 @@
22432243
}
22442244
],
22452245
"content": {
2246-
"width": 60,
2247-
"height": 60,
2246+
"width": 50,
2247+
"height": 50,
22482248
"depth": 0.01,
22492249
"enableTextureTransparency": true,
22502250
"facesOrientation": "Y",
@@ -5978,14 +5978,15 @@
59785978
"comment": "Random bonus creation"
59795979
},
59805980
{
5981-
"type": "BuiltinCommonInstructions::Standard",
5981+
"type": "BuiltinCommonInstructions::ForEach",
5982+
"object": "Crate",
59825983
"conditions": [
59835984
{
59845985
"type": {
59855986
"value": "Egal"
59865987
},
59875988
"parameters": [
5988-
"RandomInRange(1,4)",
5989+
"RandomInRange(1, 4)",
59895990
"<=",
59905991
"1"
59915992
]
@@ -26964,8 +26965,8 @@
2696426965
"parameters": [
2696526966
"",
2696626967
"Bonus",
26967-
"GetArgumentAsNumber(\"PositionX\")",
26968-
"GetArgumentAsNumber(\"PositionY\")",
26968+
"GetArgumentAsNumber(\"PositionX\") + 5",
26969+
"GetArgumentAsNumber(\"PositionY\") + 5",
2696926970
""
2697026971
]
2697126972
},
@@ -27002,7 +27003,7 @@
2700227003
"parameters": [
2700327004
"\"Type\"",
2700427005
"=",
27005-
"0"
27006+
"1"
2700627007
]
2700727008
}
2700827009
],
@@ -27029,7 +27030,7 @@
2702927030
"parameters": [
2703027031
"\"Type\"",
2703127032
"=",
27032-
"1"
27033+
"2"
2703327034
]
2703427035
}
2703527036
],
@@ -27153,7 +27154,7 @@
2715327154
"Bonus",
2715427155
"Type",
2715527156
"=",
27156-
"0"
27157+
"1"
2715727158
]
2715827159
}
2715927160
],
@@ -27182,7 +27183,7 @@
2718227183
"Bonus",
2718327184
"Type",
2718427185
"=",
27185-
"1"
27186+
"2"
2718627187
]
2718727188
}
2718827189
],
@@ -27245,7 +27246,7 @@
2724527246
"Object",
2724627247
"Bonus[VariableString(newIndex)][\"X\"]",
2724727248
"=",
27248-
"Bonus.X()"
27249+
"Bonus.X() - 5"
2724927250
]
2725027251
},
2725127252
{
@@ -27256,7 +27257,7 @@
2725627257
"Object",
2725727258
"Bonus[VariableString(newIndex)][\"Y\"]",
2725827259
"=",
27259-
"Bonus.Y()"
27260+
"Bonus.Y() - 5"
2726027261
]
2726127262
},
2726227263
{

0 commit comments

Comments
 (0)