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
|
|
@ -347,13 +347,26 @@ namespace ScarletMansion {
|
|||
|
||||
public static class ScarletNetworkManagerUtility {
|
||||
|
||||
public static int GetCriticalDamageToPlayer(PlayerControllerB player, bool forceKill) {
|
||||
if (!player.criticallyInjured && !forceKill) {
|
||||
public static int GetMarkedDamageToPlayer(PlayerControllerB player) {
|
||||
if (IsPlayerMarkedForDeath(player)) return player.health;
|
||||
|
||||
if (!player.criticallyInjured) {
|
||||
return player.health - 5;
|
||||
}
|
||||
return player.health;
|
||||
}
|
||||
|
||||
public static bool IsPlayerMarkedForDeath(PlayerControllerB player){
|
||||
var scarletPlayer = ScarletPlayerControllerB.GetScarletPlayerScript(player);
|
||||
if (scarletPlayer) return scarletPlayer.markedForDeath;
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void MarkPlayerForDeath(PlayerControllerB player){
|
||||
var scarletPlayer = ScarletPlayerControllerB.GetScarletPlayerScript(player);
|
||||
if (scarletPlayer) scarletPlayer.markedForDeath = true;
|
||||
}
|
||||
|
||||
|
||||
public static int GetFlashlightId(FlashlightItem flashlightItem){
|
||||
var flashlight = Assets.GetFlashlight(flashlightItem.itemProperties);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue