Skip to content

Commit 854c8fb

Browse files
committed
Handle GM bird monsters and dragons
This ensures bird monsters can be safely swapped out with other enemies in Kingdom and Vegas, and still provide a way to end the level. Some initial dragon spawn rooms have been allocated,.
1 parent 0b7ec48 commit 854c8fb

File tree

8 files changed

+822
-10
lines changed

8 files changed

+822
-10
lines changed

TRDataControl/Environment/Model/Types/Entities/EMAddEntityFunction.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ public override void ApplyToLevel(TR1Level level)
4141

4242
public override void ApplyToLevel(TR2Level level)
4343
{
44-
if (level.Entities.Count < _defaultEntityLimit)
44+
int limit = _isCommunityPatch ? 10240 : _defaultEntityLimit;
45+
if (level.Entities.Count < limit)
4546
{
4647
EMLevelData data = GetData(level);
4748
if (TargetRelocation != null)

TRDataControl/Transport/TR2/TR2MassExporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected override TR2Level ReadLevel(string path)
2929
},
3030
[TR2LevelNames.BARTOLI] = new()
3131
{
32-
TR2Type.StickWieldingGoon1WhiteVest, TR2Type.Key1_M_H, TR2Type.LargeMed_M_H, TR2Type.SmallMed_M_H
32+
TR2Type.StickWieldingGoon1WhiteVest, TR2Type.Key1_M_H, TR2Type.Keyhole1, TR2Type.LargeMed_M_H, TR2Type.SmallMed_M_H,
3333
},
3434
[TR2LevelNames.OPERA] = new()
3535
{

0 commit comments

Comments
 (0)