Skip to content

Commit

Permalink
Add Speed Booster and Powergrip offworld models (#388)
Browse files Browse the repository at this point in the history
* Powergrip

* Speed Booster
  • Loading branch information
dyceron authored Jun 25, 2024
1 parent f8efa74 commit 65ba4c1
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 3 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion src/open_samus_returns_rando/files/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,6 @@
"ITEM_RESERVE_TANK_LIFE",
"ITEM_RESERVE_TANK_MISSILE",
"ITEM_RESERVE_TANK_SPECIAL_ENERGY",
"ITEM_OFFWORLD",
"ITEM_WEAPON_ICE_MISSILE"
]
},
Expand Down
14 changes: 14 additions & 0 deletions src/open_samus_returns_rando/pickups/model_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,20 @@ class ModelData:
"actors/items/powerup_icemissile/models/textures/missile_d.bctex",
),
),
"powerup_powergrip": ModelData(
bcmdl_path="actors/items/powerup_powergrip/models/powerup_powergrip.bcmdl",
dependencies=(
"actors/items/powerup_powergrip/models/powerup_powergrip.bcmdl",
"actors/items/powerup_powergrip/models/textures/itempowergrip_d.bctex",
),
),
"powerup_speedbooster": ModelData(
bcmdl_path="actors/items/powerup_speedbooster/models/powerup_speedbooster.bcmdl",
dependencies=(
"actors/items/powerup_speedbooster/models/powerup_speedbooster.bcmdl",
"maps/textures/chozoartifactor_s.bctex",
),
),
}


Expand Down
66 changes: 64 additions & 2 deletions tests/test_files/item_models_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,8 @@
"resources": [
[
{
"item_id": "ITEM_OFFWORLD",
"quantity": 1
"item_id": "ITEM_NONE",
"quantity": 0
}
]
],
Expand All @@ -709,6 +709,44 @@
"model": [
"item_offworld"
]
},
{
"pickup_type": "actor",
"caption": "Sent Power Grip to meep.",
"resources": [
[
{
"item_id": "ITEM_NONE",
"quantity": 0
}
]
],
"pickup_actor": {
"scenario": "s000_surface",
"actor": "another_pickup36"
},
"model": [
"powerup_powergrip"
]
},
{
"pickup_type": "actor",
"caption": "Sent Speed Booster to meep.",
"resources": [
[
{
"item_id": "ITEM_NONE",
"quantity": 0
}
]
],
"pickup_actor": {
"scenario": "s000_surface",
"actor": "another_pickup37"
},
"model": [
"powerup_speedbooster"
]
}
],
"energy_per_tank": 100,
Expand Down Expand Up @@ -1148,6 +1186,30 @@
"z": 0.0
},
"collision_camera_name": "collision_camera_000"
},
{
"new_actor": {
"actor": "another_pickup36",
"scenario": "s000_surface"
},
"location": {
"x": -6800.0,
"y": 2100.0,
"z": 0.0
},
"collision_camera_name": "collision_camera_000"
},
{
"new_actor": {
"actor": "another_pickup37",
"scenario": "s000_surface"
},
"location": {
"x": -6700.0,
"y": 2100.0,
"z": 0.0
},
"collision_camera_name": "collision_camera_000"
}
],
"hints": [],
Expand Down

0 comments on commit 65ba4c1

Please sign in to comment.