Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TRR enemy support #682

Merged
merged 18 commits into from
May 25, 2024
Merged

Conversation

lahm86
Copy link
Collaborator

@lahm86 lahm86 commented May 24, 2024

Part of #614.

Checklist

Description

Quite a big change, but ultimately this reduces a lot of duplication between the enemy logic for all games. The original main logic in TR1EnemyRandomizer, TR2EnemyRandomizer and TR3EnemyRandomizer has been moved out to the new allocator classes, and so this is now shared between classic and remastered. The individual randomizers keep specific logic, like how to add unarmed level extras for tough levels, or performing cloning or mesh swaps, which is currently only possible in classic.

The remaster import logic is practically identical to classic, the main difference being we merge the PDP/MAP data once it's completed. Texture limits are increased too, so that means running the same seed in classic and remaster will most likely give different results for TR2, but this isn't really a concern.

The main point of duplication remains the threaded behaviour, so again that will be tackled later under #569.

@lahm86 lahm86 added enhancement New feature or request TR1 TR2 TR3 labels May 24, 2024
@lahm86 lahm86 added this to the 1.9.0 milestone May 24, 2024
@lahm86 lahm86 self-assigned this May 24, 2024
@lahm86 lahm86 requested review from rr-, chreden and makotocchi May 24, 2024 18:41
@lahm86 lahm86 merged commit 7847af4 into LostArtefacts:master May 25, 2024
2 checks passed
@lahm86 lahm86 deleted the issue-614-trr-enemies branch May 25, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request TR1 TR2 TR3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants