Added configs for items and enemies
Critical damage renamed to marked for death and all share the same mechanic now Revelant now slows down to speed over a fixed short amount instead the nonworking jank before Moved item/enemy injection to DunGenPlus
This commit is contained in:
parent
e38be14578
commit
fd731baf2f
33 changed files with 551 additions and 470 deletions
37
CoronerPatch/ScarletMansionCoronerPatch/Patch.cs
Normal file
37
CoronerPatch/ScarletMansionCoronerPatch/Patch.cs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
using Coroner;
|
||||
using GameNetcodeStuff;
|
||||
using ScarletMansion.ModPatch;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ScarletMansionCoronerPatch {
|
||||
public class Patch {
|
||||
|
||||
public static Dictionary<CoronerDeathEnum, object> causesOfDeath;
|
||||
|
||||
public static void Activate() {
|
||||
causesOfDeath = new Dictionary<CoronerDeathEnum, object>();
|
||||
|
||||
causesOfDeath.Add(CoronerDeathEnum.Knight, AdvancedCauseOfDeath.Build("DeathEnemyKnight"));
|
||||
causesOfDeath.Add(CoronerDeathEnum.Maid, AdvancedCauseOfDeath.Build("DeathEnemyMaid"));
|
||||
causesOfDeath.Add(CoronerDeathEnum.Void, AdvancedCauseOfDeath.Build("DeathPitVoid"));
|
||||
causesOfDeath.Add(CoronerDeathEnum.GhostKnight, AdvancedCauseOfDeath.Build("DeathEnemyGhostKnight"));
|
||||
causesOfDeath.Add(CoronerDeathEnum.Knife, AdvancedCauseOfDeath.Build("DeathPlayerMaidKnife"));
|
||||
causesOfDeath.Add(CoronerDeathEnum.KnifeFeed, AdvancedCauseOfDeath.Build("DeathPlayerMaidKnifeFeed"));
|
||||
causesOfDeath.Add(CoronerDeathEnum.KnifeFriendlyFire, AdvancedCauseOfDeath.Build("DeathPlayerMaidKnifeFriendlyFire"));
|
||||
|
||||
ScarletMansion.Assets.onPlayerDeath.AddEvent("CoronerPatch", ProcessCauseOfDeath);
|
||||
}
|
||||
|
||||
public static void ProcessCauseOfDeath(CoronerParameters parameters) {
|
||||
if (causesOfDeath.TryGetValue(parameters.death, out var value)) {
|
||||
Coroner.API.SetCauseOfDeath(parameters.player, (AdvancedCauseOfDeath)value);
|
||||
Plugin.logger.LogInfo(parameters.death);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue