-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,568 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace IntelOrca.Biohazard.BioRand.RECV | ||
{ | ||
internal class ReCvDoorHelper : IDoorHelper | ||
{ | ||
public byte[] GetReservedLockIds() => new byte[0]; | ||
|
||
public void Begin(RandoConfig config, GameData gameData, Map map) | ||
{ | ||
} | ||
|
||
public void End(RandoConfig config, GameData gameData, Map map) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
using System; | ||
using IntelOrca.Biohazard.Script.Opcodes; | ||
|
||
namespace IntelOrca.Biohazard.BioRand.RECV | ||
{ | ||
internal class ReCvEnemyHelper : IEnemyHelper | ||
{ | ||
public void BeginRoom(RandomizedRdt rdt) | ||
{ | ||
} | ||
|
||
public string GetEnemyName(byte type) | ||
{ | ||
switch (type) | ||
{ | ||
case ReCvEnemyIds.Zombie: | ||
return "ZOMBIE"; | ||
default: | ||
return $"EM_{type:X2}"; | ||
} | ||
} | ||
|
||
public int GetEnemyTypeLimit(RandoConfig config, int difficulty, byte type) | ||
{ | ||
var limit = new byte[] { 4, 8, 12, 16 }; | ||
var index = Math.Min(limit.Length - 1, difficulty); | ||
return limit[index]; | ||
} | ||
|
||
public SelectableEnemy[] GetSelectableEnemies() => new[] | ||
{ | ||
new SelectableEnemy("Bat", "Black", ReCvEnemyIds.Bat), | ||
new SelectableEnemy("Zombie", "LightGray", ReCvEnemyIds.Zombie), | ||
new SelectableEnemy("Hunter", "IndianRed", ReCvEnemyIds.Hunter), | ||
new SelectableEnemy("Bandersnatch", "Cyan", ReCvEnemyIds.Bandersnatch), | ||
new SelectableEnemy("Zombie Dog", "Black", ReCvEnemyIds.ZombieDog) | ||
}; | ||
|
||
public bool IsEnemy(byte type) | ||
{ | ||
return type < ReCvEnemyIds.Unknown43; | ||
} | ||
|
||
public bool IsUniqueEnemyType(byte type) | ||
{ | ||
switch (type) | ||
{ | ||
case ReCvEnemyIds.Bat: | ||
case ReCvEnemyIds.Hunter: | ||
case ReCvEnemyIds.Bandersnatch: | ||
case ReCvEnemyIds.Zombie: | ||
case ReCvEnemyIds.ZombieDog: | ||
return false; | ||
default: | ||
return true; | ||
} | ||
} | ||
|
||
public void SetEnemy(RandoConfig config, Rng rng, SceEmSetOpcode enemy, MapRoomEnemies enemySpec, byte enemyType) | ||
{ | ||
} | ||
|
||
public bool ShouldChangeEnemy(RandoConfig config, SceEmSetOpcode enemy) | ||
{ | ||
return false; | ||
} | ||
|
||
public bool SupportsEnemyType(RandoConfig config, RandomizedRdt rdt, bool hasEnemyPlacements, byte enemyType) | ||
{ | ||
return true; | ||
} | ||
|
||
public bool IsZombie(byte type) => type == ReCvEnemyIds.Zombie; | ||
|
||
public byte[] GetReservedEnemyIds() => new byte[] { }; | ||
|
||
public byte[] GetEnemyDependencies(byte enemyType) => new byte[0]; | ||
|
||
public byte[] GetRequiredEsps(byte enemyType) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
Oops, something went wrong.