Initial commit
This commit is contained in:
commit
c4a24c9fdf
142 changed files with 15491 additions and 0 deletions
46
JotunnModStub/Fenrir/FenrirStatusEffects.cs
Normal file
46
JotunnModStub/Fenrir/FenrirStatusEffects.cs
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
using System.Collections;
|
||||
using BepInEx;
|
||||
using HarmonyLib;
|
||||
using Jotunn.Configs;
|
||||
using Jotunn.Entities;
|
||||
using Jotunn.Managers;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI; // Added for UI
|
||||
|
||||
namespace RacesOfValheim
|
||||
{
|
||||
|
||||
public class SE_FormCooldown : StatusEffect
|
||||
{
|
||||
public override void Stop()
|
||||
{
|
||||
base.Stop();
|
||||
if (Player.m_localPlayer != null)
|
||||
{
|
||||
Player.m_localPlayer.Message(MessageHud.MessageType.Center, $"{m_name} is Ready!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class SE_FenrirCurse : SE_Stats
|
||||
{
|
||||
public override void Setup(Character character)
|
||||
{
|
||||
base.Setup(character);
|
||||
if (character == Player.m_localPlayer)
|
||||
{
|
||||
Player.m_localPlayer.m_customData["FenrirCurse_Active"] = "true";
|
||||
}
|
||||
}
|
||||
|
||||
public override void UpdateStatusEffect(float dt)
|
||||
{
|
||||
base.UpdateStatusEffect(dt);
|
||||
int state = BossProgressionManager.GetCurrentProgressionState();
|
||||
|
||||
m_fallDamageModifier = FenrirProgression.GetFallDamageModifier(state);
|
||||
m_speedModifier = 1.0f + FenrirProgression.GetSpeedModifier(state);
|
||||
m_jumpModifier = new Vector3(0, FenrirProgression.GetJumpModifier(state), 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue