warvulture

This commit is contained in:
Ferdinando 2026-08-19 19:18:24 +02:00
commit e9d6e78ec8
15 changed files with 1041 additions and 489 deletions

View file

@ -92,29 +92,37 @@ namespace RacesOfValheim
}
/// <summary>
/// Stinger Morph's cooldown. Purely a marker with a countdown, the way
/// Ravager Strain's cooldown. Purely a marker with a countdown, the way
/// SE_DvergarAbilityCooldown is: Valheim prints the remaining time of any effect with a m_ttl,
/// so the HUD comes for free.
/// </summary>
public class SE_SvermStingerCooldown : StatusEffect
public class SE_SvermRavagerCooldown : StatusEffect
{
public override void Setup(Character character)
{
base.Setup(character);
m_name = "Stinger Morph Cooldown";
m_tooltip = "The wings are spent. They will carry you again soon.";
m_ttl = SvermConfig.StingerCooldownSeconds;
m_name = "Ravager Strain Cooldown";
m_tooltip = "The strain is spent. It will take again soon.";
m_ttl = SvermConfig.RavagerCooldownSeconds;
}
}
/// <summary>Held while the Deathsquito form is up, so anything can ask "am I a bug right now".</summary>
public class SE_SvermStingerForm : StatusEffect
/// <summary>
/// Held while the Seeker Brute form is up, so anything can ask "am I wearing the Brute right
/// now". FOUND IN PLAY: without m_ttl, this icon showed with no countdown at all while the
/// cooldown icon right next to it did - the same top-right corner telling two different
/// stories about how a timer works. Setting it means the HUD counts the form down to zero the
/// same way it already counts the cooldown down, and the two hand off from one to the other
/// exactly as SvermRavagerForm.Exit/Enter's own timers do.
/// </summary>
public class SE_SvermRavagerForm : StatusEffect
{
public override void Setup(Character character)
{
base.Setup(character);
m_name = "Stinger Morph";
m_tooltip = "Wings, a needle, and nothing to hide behind.";
m_name = "Ravager Strain";
m_tooltip = "The shell doubles, and nothing that hits it lands the same again.";
m_ttl = SvermConfig.RavagerDurationSeconds;
}
}
@ -136,15 +144,15 @@ namespace RacesOfValheim
ItemManager.Instance.AddStatusEffect(customStats);
StatsSE = customStats.StatusEffect as SE_SvermStats;
var form = ScriptableObject.CreateInstance<SE_SvermStingerForm>();
form.name = SvermConfig.StingerSE;
form.m_name = "Stinger Morph";
var form = ScriptableObject.CreateInstance<SE_SvermRavagerForm>();
form.name = SvermConfig.RavagerSE;
form.m_name = "Ravager Strain";
form.m_icon = icon;
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(form, fixReference: false));
var cooldown = ScriptableObject.CreateInstance<SE_SvermStingerCooldown>();
cooldown.name = SvermConfig.StingerCdSE;
cooldown.m_name = "Stinger Morph Cooldown";
var cooldown = ScriptableObject.CreateInstance<SE_SvermRavagerCooldown>();
cooldown.name = SvermConfig.RavagerCdSE;
cooldown.m_name = "Ravager Strain Cooldown";
cooldown.m_icon = icon;
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(cooldown, fixReference: false));
}