Skip to content

Commit

Permalink
tr1/objects/scion3: save scion hitpoints
Browse files Browse the repository at this point in the history
This ensures the shootable scion's hitpoints value is saved so if it's
still active on reload, Lara can't continue to target it.

Resolves LostArtefacts#1819.
  • Loading branch information
lahm86 committed Nov 3, 2024
1 parent 432f7bd commit 874ef8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/tr1/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
- fixed being unable to rename the lead bar (#1774, regression from 4.5)
- fixed the controls menu extending to the bottom of the screen with certain text scaling values (#1783, regression from 2.12)
- fixed game stuck at remapping controller key if no controllers connected (#1788)
- fixed being able to shoot the scion multiple times if save/load is used while it blows up (#1819)
- improved enemy item drops by supporting the TR2+ approach of having drops defined in level data (#1713)
- improved Italian localization for the Config Tool
- removed health cheat (we now have the `/hp` command)
Expand Down
1 change: 1 addition & 0 deletions docs/tr1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ Not all options are turned on by default. Refer to `TR1X_ConfigTool.exe` for det
- fixed the Scion being extremely difficult to shoot with the shotgun
- fixed collision issues with drawbridges, trapdoors, and bridges when stacked over each other, over slopes, and near the ground
- fixed a potential softlock when killing the Torso boss in Great Pyramid
- fixed being able to shoot the scion multiple times if save/load is used while it blows up

#### Cheats
- added a fly cheat
Expand Down
1 change: 1 addition & 0 deletions src/tr1/game/objects/general/scion3.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ void Scion3_Setup(OBJECT *obj)
obj->control = Scion3_Control;
obj->hit_points = 5;
obj->save_flags = 1;
obj->save_hitpoints = 1;
}

void Scion3_Control(int16_t item_num)
Expand Down

0 comments on commit 874ef8c

Please sign in to comment.