Skip to content

Enemy replacement #29

Description

@TacoConKvass

What is the addition?

An API allowing to dynamically replace enemies that are going to be spawned in a room.

Why?

This will allow for replacing enemies in boss rooms as well as normal generated rooms.

Example usage

Enemy.ReplaceSpawn.Event += (EnemyType originalType, EnemyRank originalRank, EnemySpawnController spawnController) => {
    // ...
}

Additional notes

Can be implemented by inserting the event call before the EnemyManager.GetEnemyFromPool call in EnemySpawnController.InitializeEnemyInstance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

additionAddition suggestion

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions