Drake flight resolves ZInput.GetJoyLeftStickY at runtime, since the hotfix dropped its bool parameter. Faction merchant TradeItems now set the 1.0 fields StoreGui dereferences (m_tooltip, m_buyPlayerEffects), and the Dvergar trader discount clones the whole TradeItem instead of rebuilding four fields. Trol totem refusals return true so vanilla's $msg_cantuseon no longer covers them. The Fenrir curse speed modifier is the bonus alone (SE_Stats adds it), not 1 + bonus. New Discord link. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
48 lines
1.5 KiB
C#
48 lines
1.5 KiB
C#
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);
|
|
// SE_Stats.ModifySpeed adds baseSpeed * m_speedModifier, so this is the bonus alone:
|
|
// 0 is vanilla speed, 0.03 is +3%. A leading 1.0f here was a flat +100%.
|
|
m_speedModifier = FenrirProgression.GetSpeedModifier(state);
|
|
m_jumpModifier = new Vector3(0, FenrirProgression.GetJumpModifier(state), 0);
|
|
}
|
|
}
|
|
}
|