Skip to content

Commit 7869a6b

Browse files
authored
[FireBullet] [Reviewed] Added previous changes that were overwritten (#783)
1 parent ffba508 commit 7869a6b

File tree

1 file changed

+25
-10
lines changed

1 file changed

+25
-10
lines changed

extensions/reviewed/FireBullet.json

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "FireBullet",
99
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/bullet.svg",
1010
"shortDescription": "Fire bullets, manage ammo, reloading, and overheating.",
11-
"version": "0.4.1",
11+
"version": "0.4.2",
1212
"description": [
1313
"Fire bullets, manage ammo, reloading, and overheating.",
1414
"",
@@ -35,13 +35,7 @@
3535
"Statistics:",
3636
"- Total bullets created",
3737
"- Total shots taken",
38-
"- Total reloads completed",
39-
"",
40-
"Bullets:",
41-
"- Each bullet is assigned several variables that can be used for advanced object picking",
42-
"- __FireBullet.BulletID = Unique number for every bullet created",
43-
"- __FireBullet.BatchID = Unique number for all bullets created in the same frame",
44-
"- __FireBullet.BatchOrderID = Unique number for each bullet in the same batch. Can be used to identify the position in the firing arc."
38+
"- Total reloads completed"
4539
],
4640
"origin": {
4741
"identifier": "FireBullet",
@@ -1176,13 +1170,24 @@
11761170
"type": "BuiltinCommonInstructions::Standard",
11771171
"conditions": [],
11781172
"actions": [
1173+
{
1174+
"type": {
1175+
"value": "FireBullet::FireBullet::SetPropertyRandomizedAngle"
1176+
},
1177+
"parameters": [
1178+
"Object",
1179+
"Behavior",
1180+
"=",
1181+
"GetArgumentAsNumber(\"Angle\") + RandomInRange(-Object.Behavior::PropertyAngleVariance(), Object.Behavior::PropertyAngleVariance())"
1182+
]
1183+
},
11791184
{
11801185
"type": {
11811186
"value": "AddForceAL"
11821187
},
11831188
"parameters": [
11841189
"Bullet",
1185-
"GetArgumentAsNumber(\"Angle\") + RandomInRange(-Object.Behavior::PropertyAngleVariance(), Object.Behavior::PropertyAngleVariance())",
1190+
"Object.Behavior::PropertyRandomizedAngle()",
11861191
"GetArgumentAsNumber(\"Speed\") + RandomInRange(-Object.Behavior::PropertyBulletSpeedVariance(), Object.Behavior::PropertyBulletSpeedVariance())",
11871192
"1"
11881193
]
@@ -1275,7 +1280,7 @@
12751280
"parameters": [
12761281
"Bullet",
12771282
"=",
1278-
"GetArgumentAsNumber(\"Angle\")"
1283+
"Object.Behavior::PropertyRandomizedAngle()"
12791284
]
12801285
}
12811286
]
@@ -4519,6 +4524,16 @@
45194524
"hidden": true,
45204525
"name": "BulletLayer"
45214526
},
4527+
{
4528+
"value": "0",
4529+
"type": "Number",
4530+
"label": "",
4531+
"description": "",
4532+
"group": "",
4533+
"extraInformation": [],
4534+
"hidden": true,
4535+
"name": "RandomizedAngle"
4536+
},
45224537
{
45234538
"value": "0",
45244539
"type": "Number",

0 commit comments

Comments
 (0)