Initial commit
This commit is contained in:
commit
c4a24c9fdf
142 changed files with 15491 additions and 0 deletions
84
JotunnModStub/Fenrir/FenrirProgression.cs
Normal file
84
JotunnModStub/Fenrir/FenrirProgression.cs
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RacesOfValheim
|
||||
{
|
||||
public static class FenrirProgression
|
||||
{
|
||||
public enum FormType
|
||||
{
|
||||
None,
|
||||
Wolf,
|
||||
Ulv,
|
||||
Fenring,
|
||||
Cultist
|
||||
}
|
||||
|
||||
public class FormRules
|
||||
{
|
||||
public FormType Form;
|
||||
public bool NeedsNight;
|
||||
public float DurationMinutes;
|
||||
public float CooldownMinutes;
|
||||
|
||||
public FormRules(FormType form, bool needsNight, float duration, float cooldown)
|
||||
{
|
||||
Form = form;
|
||||
NeedsNight = needsNight;
|
||||
DurationMinutes = duration;
|
||||
CooldownMinutes = cooldown;
|
||||
}
|
||||
}
|
||||
|
||||
public static float GetArmorBonus(int state)
|
||||
{
|
||||
return 3f * state;
|
||||
}
|
||||
|
||||
public static float GetDamageBonus(int state)
|
||||
{
|
||||
return 5f * state;
|
||||
}
|
||||
|
||||
public static float GetFallDamageModifier(int state)
|
||||
{
|
||||
return Mathf.Clamp(-0.1f * state, -1f, 0f);
|
||||
}
|
||||
|
||||
public static float GetSpeedModifier(int state)
|
||||
{
|
||||
return 0.03f * state;
|
||||
}
|
||||
|
||||
public static float GetJumpModifier(int state)
|
||||
{
|
||||
return 0.03f * state;
|
||||
}
|
||||
|
||||
// --- Transformation Rules for Keys ---
|
||||
|
||||
public static FormRules GetGKeyRules(int state)
|
||||
{
|
||||
if (state >= 5) return new FormRules(FormType.Ulv, false, 0f, 0f); // Moder: Ulv (Day/Night)
|
||||
if (state >= 4) return new FormRules(FormType.Wolf, false, 0f, 0f); // Bonemass: Wolf (Day/Night)
|
||||
if (state >= 3) return new FormRules(FormType.Wolf, true, 0f, 0f); // Elder: Wolf (Night)
|
||||
return null;
|
||||
}
|
||||
|
||||
public static FormRules GetHKeyRules(int state)
|
||||
{
|
||||
if (state >= 7) return new FormRules(FormType.Fenring, false, 0f, 0f); // Queen: Fenrir (Day/Night)
|
||||
if (state >= 5) return new FormRules(FormType.Fenring, true, 0f, 0f); // Moder: Fenrir (Night)
|
||||
if (state >= 4) return new FormRules(FormType.Ulv, true, 0f, 0f); // Bonemass: Ulv (Night)
|
||||
return null;
|
||||
}
|
||||
|
||||
public static FormRules GetJKeyRules(int state)
|
||||
{
|
||||
if (state >= 8) return new FormRules(FormType.Cultist, false, 0f, 0f); // Fader: Cultist (Day/Night)
|
||||
if (state >= 7) return new FormRules(FormType.Cultist, true, 1f, 5f); // Queen: Cultist (Night, 1m dur, 5m cd)
|
||||
if (state >= 6) return new FormRules(FormType.Cultist, true, 1f, 10f); // Yagluth: Cultist (Night, 1m dur, 10m cd)
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue