Fix bullets like inkvine not falling down

Make bullets fall down by default
This commit is contained in:
Cong
2023-07-07 22:23:28 +10:00
parent f93ba187dd
commit 746ebf8aa7
4 changed files with 2 additions and 4 deletions

View File

@@ -18,7 +18,6 @@
}
},
"Falling": {
"FallsDown": true,
"Bounces": true
},
"SeekFactor": -1

View File

@@ -166,8 +166,7 @@
"Wall": {}
},
"Falling": {
"GravityFactor": 0.7,
"FallsDown": true
"GravityFactor": 0.7
},
"OutOfRangeGuns": [
"blast_weak",

View File

@@ -36,7 +36,6 @@
"Sound": "hits/petrify",
"HitsObjects": false,
"Falling": {
"FallsDown": true,
"DestroyOnDrop": true
}
},

View File

@@ -884,6 +884,7 @@ static void LoadBullet(
{
json_t *falling = json_find_first_label(node, "Falling")->child;
LoadFloat(&b->Falling.GravityFactor, falling, "GravityFactor");
b->Falling.FallsDown = true;
LoadBool(&b->Falling.FallsDown, falling, "FallsDown");
LoadBool(&b->Falling.DestroyOnDrop, falling, "DestroyOnDrop");
LoadBool(&b->Falling.Bounces, falling, "Bounces");