Skip to content

Commit

Permalink
Fix miscellaneous TR2 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lahm86 authored Feb 12, 2024
2 parents 70a6921 + 37279cc commit c22c29f
Show file tree
Hide file tree
Showing 12 changed files with 132 additions and 28 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
## [Unreleased](https://github.com/LostArtefacts/TR-Rando/compare/V1.8.3...master) - xxxx-xx-xx
## [Unreleased](https://github.com/LostArtefacts/TR-Rando/compare/V1.8.4...master) - xxxx-xx-xx

## [V1.8.4](https://github.com/LostArtefacts/TR-Rando/compare/V1.8.3...V1.8.4) - 2024-02-12
- fixed item locking logic so that secrets that rely on specific enemies will always be obtainable (#570)
- fixed a crash at the end of Diving Area if a skidoo driver is replaced by a pickup (#604)
- fixed the submarine in the Diving Area cutscene using Lara's meshes (#605)
- fixed some awkwardly placed enemies in TR2, which could either block puzzle slots/keyholes or otherwise prove difficult to kill (#606)
- fixed pickup item lighting in TR2 (#607)
- fixed a secret in Temple of Xian that requires a glitch but was marked as glitchless (#608)
- fixed an item location in Wreck of the Maria Doria that required forced flame damage (#609)

## [V1.8.3](https://github.com/LostArtefacts/TR-Rando/compare/V1.8.2...V1.8.3) - 2024-01-21
- fixed incorrect items sometimes being allocated as secret rewards in Thames Wharf (#597)
Expand Down
26 changes: 13 additions & 13 deletions TRLevelControl/Model/TR2/Enums/TR2Type.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ public enum TR2Type
UnderwaterPropeller = 94,
AirFan = 95,
SwingingBoxOrBall = 96,
MeshSwap1 = 97,
MeshSwap2 = 98,
MeshSwap3 = 99,
CutsceneActor1 = 97,
CutsceneActor2 = 98,
CutsceneActor3 = 99,
UIFrame_H = 100,
RollingStorageDrums = 101,
ZiplineHandle = 102,
Expand All @@ -132,16 +132,16 @@ public enum TR2Type
JadeSecret_M_H = 120,
SilverSecret_M_H = 121,
LaraHomePhoto_M_H = 122,
CutsceneActor1 = 123,
CutsceneActor2 = 124,
CutsceneActor3 = 125,
CutsceneActor4 = 126,
CutsceneActor5 = 127,
CutsceneActor6 = 128,
CutsceneActor7 = 129,
CutsceneActor8 = 130,
CutsceneActor9 = 131,
CutsceneActor10 = 132,
CutsceneActor4 = 123,
CutsceneActor5 = 124,
CutsceneActor6 = 125,
CutsceneActor7 = 126,
CutsceneActor8 = 127,
CutsceneActor9 = 128,
CutsceneActor10 = 129,
CutsceneActor11 = 130,
Unknown1 = 131,
Unknown2 = 132,
PassportClosed_M_H = 133,
Map_M_U = 134,
Pistols_S_P = 135,
Expand Down
2 changes: 2 additions & 0 deletions TRRandomizerCore/Randomizers/TR2/TR2ItemRandomizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ public void RandomizeItemLocations(TR2CombinedLevel level)
}

_picker.RandomizePickupLocation(entity);
entity.Intensity1 = entity.Intensity2 = -1;
}
}

Expand Down Expand Up @@ -245,6 +246,7 @@ private void RandomizeKeyItems(TR2CombinedLevel level)
_picker.RandomizeKeyItemLocation(
entity, LocationUtilities.HasPickupTriger(entity, i, level.Data, floorData),
level.Script.OriginalSequence, level.Data.Rooms[entity.Room].Info);
entity.Intensity1 = entity.Intensity2 = -1;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,27 @@
}
}
]
},
{
"Condition": {
"Comments": "If enemy 103's type has been randomized, move him outside for some breathing space.",
"ConditionType": 0,
"EntityIndex": 103,
"EntityType": 32
},
"OnFalse": [
{
"EMType": 44,
"EntityIndex": 103,
"TargetLocation": {
"X": 43520,
"Y": -10240,
"Z": 69120,
"Room": 114,
"Angle": 16384
}
}
]
}
],
"ConditionalOneOf": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1894,6 +1894,47 @@
"NewDoorType": 111
}
]
},
{
"Condition": {
"Comments": "If enemy 46 is a t-rex or chicken, drain the nearby pool and put him there.",
"ConditionType": 0,
"Or": [
{
"ConditionType": 0,
"EntityIndex": 46,
"EntityType": 46
}
],
"EntityIndex": 46,
"EntityType": 214
},
"OnTrue": [
{
"EMType": 3,
"RoomNumbers": [
85,
94
],
"WaterTextures": [
1730,
1764,
1769,
1770
]
},
{
"EMType": 44,
"EntityIndex": 46,
"TargetLocation": {
"X": 58880,
"Y": 4480,
"Z": 33280,
"Room": 94,
"Angle": -16384
}
}
]
}
],
"ConditionalOneOf": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2597,6 +2597,34 @@
}
}
]
},
{
"Condition": {
"Comments": "If enemy 59 is an eel, rotate it to avoid blocking puzzle slots.",
"ConditionType": 0,
"Or": [
{
"ConditionType": 0,
"EntityIndex": 59,
"EntityType": 26
}
],
"EntityIndex": 59,
"EntityType": 27
},
"OnTrue": [
{
"EMType": 44,
"EntityIndex": 59,
"TargetLocation": {
"X": 59904,
"Y": -3584,
"Z": 75264,
"Room": 30,
"Angle": -32768
}
}
]
}
],
"ConditionalOneOf": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1494,13 +1494,13 @@
"Condition": {
"Comments": "If neither rooms 2 nor 96 contain a secret, drain the plane area.",
"ConditionType": 1,
"RoomIndex": 2,
"Or": [
{
"ConditionType": 1,
"RoomIndex": 96
}
]
],
"RoomIndex": 2
},
"OnFalse": {
"Leader": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1715,6 +1715,12 @@
"Z": 91648,
"Room": 68
},
{
"X": 52736,
"Y": -4096,
"Z": 35328,
"Room": 21
},
{
"X": 67072,
"Y": 4352,
Expand Down
3 changes: 2 additions & 1 deletion TRRandomizerCore/Resources/TR2/Locations/locations.json
Original file line number Diff line number Diff line change
Expand Up @@ -6465,7 +6465,8 @@
"Y": -5632,
"Z": 69633,
"Room": 92,
"Difficulty": "Hard"
"Difficulty": "Hard",
"RequiresGlitch": true
},
{
"X": 33718,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@
102
]
},
"PLATFORM.TR2": {
"52": [
17,
29,
31,
46,
65,
77
]
},
"UNWATER.TR2": {
"52": [
20,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
"PLATFORM.TR2": {
"40": [
83
],
"52": [
17,
29,
31,
46,
65
]
},
"UNWATER.TR2": {
Expand Down
2 changes: 1 addition & 1 deletion TRRandomizerView/TRRandomizerView.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<SelfContained>false</SelfContained>
<ApplicationIcon>Resources\rando.ico</ApplicationIcon>

<Version>1.8.3</Version>
<Version>1.8.4</Version>
<Product>Tomb Raider Randomizer</Product>
<Copyright>Copyright © Tomb Raider Community 2023</Copyright>
</PropertyGroup>
Expand Down

0 comments on commit c22c29f

Please sign in to comment.