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

@ -24,8 +24,8 @@ namespace RacesOfValheim
public const string RaceId = "Sverm";
public const string StatsSE = "SE_SvermStats";
public const string StingerSE = "SE_SvermStingerForm";
public const string StingerCdSE = "SE_SvermStingerCooldown";
public const string RavagerSE = "SE_SvermRavagerForm";
public const string RavagerCdSE = "SE_SvermRavagerCooldown";
// Mirrors the ZDO key layout the other races use, so remote clients can work out the tier
// without having the local player's progression state.
@ -144,7 +144,7 @@ namespace RacesOfValheim
public const int VenomGlandsState = 4;
public const int AcidHemolymphState = 4;
public const int VestigialWingsState = 5;
public const int StingerMorphState = 6;
public const int RavagerFormState = 6;
public const int EitrSacsState = 6;
public const int MajesticCarapaceState = 7;
public const int SurrenalGlandsState = 7;
@ -231,38 +231,60 @@ namespace RacesOfValheim
// ─── Carapace Regeneration (state 8) ─────────────────────────────────
public static readonly float CarapaceRegenPerSecond = 0.5f;
// ─── Stinger Morph (state 6) ─────────────────────────────────────────
public const string StingerCreature = "Deathsquito";
public static readonly float StingerDurationSeconds = 120f;
public static readonly float StingerCooldownSeconds = 480f;
// ─── Ravager Strain (state 6) ────────────────────────────────────────
// Replaces the old Stinger Morph (a Deathsquito flight form). Players found that form's
// glass-cannon trade too strong for what it cost; this is the opposite shape - no flight,
// no summons, and the fragility multiplier is gone, replaced by a straight armour buff.
// Same duration and cooldown as the form it replaces.
public const string RavagerCreature = "SeekerBrute";
public static readonly float RavagerDurationSeconds = 120f; // 2 minutes
public static readonly float RavagerCooldownSeconds = 300f; // 5 minutes
// The Brute's four real attack items, named and verified with `dumpelder SeekerBrute` in
// a live world - not guessed. Their numbers are read once by SvermRavagerAttacks and
// applied by hand in RavagerFormBehavior's own attack coroutines (Physics.OverlapSphere,
// the same method Fenrir and Skadi's forms already use); nothing here is cloned or
// equipped any more.
public const string RavagerBiteWeapon = "SeekerBrute_bite"; // slash 100, left click
public const string RavagerRamWeapon = "SeekerBrute_ram"; // blunt/chop/pickaxe 100, right click / G
public const string RavagerSlamWeapon = "SeekerBrute_groundslam"; // AoE stomp, blunt/chop/pickaxe 120-100-100, middle click
/// <summary>
/// Multiplier on every point of damage taken while in form. 2.5 means a blow that the
/// carapace would shrug off very nearly ends you.
///
/// This is the entire cost of the ability and it has to be steep: in form you deal the
/// hardest single hit in the Plains and you can leave any fight by going straight up. The
/// balance is not the cooldown, it is that a single arrow answers you.
/// The Brute's roar. type=None on the real creature - it lands no hit there - but the
/// item still carries real numbers (slash 80, chop 10) nobody ever wired to a hitbox.
/// Players asked for a use for it: a short-cooldown AoE around the player rather than a
/// forward swing, bound to G once G stopped being needed for anything else.
/// </summary>
public static readonly float StingerFragility = 2.5f;
public const string RavagerTauntWeapon = "SeekerBrute_Taunt";
// ─── The escort ──────────────────────────────────────────────────────
/// <summary>
/// Two deathsquitoes called up with the form, and they OUTLIVE it on purpose.
///
/// Three minutes against the form's two. The extra minute is the whole idea: the form ends
/// wherever it ends, usually in the air, and the Sverm comes back to being a slow armoured
/// thing halfway through a fall. The escort is what covers that minute. Then it dies too.
/// What the carapace's own armour value (SvermCarapace.GetArmor) is multiplied by while
/// the form is up. 2 means the tank doubles its damage reduction for the same two minutes
/// the old form spent being nearly one-shot by anything.
/// </summary>
public const int EscortCount = 2;
public static readonly float EscortLifetimeSeconds = 180f;
public static readonly float EscortSpawnSpread = 2.5f;
public static readonly float RavagerArmorMultiplier = 2f;
// ─── The taunt (G) ───────────────────────────────────────────────────
/// <summary>Its own cooldown, short and separate from the main three attacks' own lock timing.</summary>
public static readonly float RavagerTauntCooldownSeconds = 10f;
/// <summary>Centred on the player, not projected forward like a swing - a roar goes out, not in.</summary>
public static readonly float RavagerTauntRadius = 3f;
// Candidates tried in order, same PlayEffect pattern MorphIn/MorphOutEffects already use:
// a wrong guess is silently skipped rather than an error. Not confirmed to exist - the
// Brute's own Attack effect slots were all empty when dumped, so if a roar sound exists
// at all it lives somewhere this file has not found yet.
public static readonly string[] RavagerTauntSoundEffects = { "sfx_seeker_brute_taunt", "sfx_seekerbrute_taunt", "sfx_seeker_taunt" };
// ─── Transformation effects ──────────────────────────────────────────
// The Seeker's own spawn and death bursts, verified in the manifest. vfx_boar_death is the
// fallback because it is what the Aswid uses and is certain to exist.
public static readonly string[] MorphInEffects = { "fx_seeker_spawn", "vfx_boar_death" };
public static readonly string[] MorphOutEffects = { "fx_seeker_death", "vfx_boar_death" };
// The Seeker's own spawn and death bursts are the verified fallback - carried over from
// the old Stinger Morph, which used them successfully. A Brute-specific pair is tried
// first on the chance this build has one; PlayEffect already skips silently past any name
// that does not resolve, so a wrong guess here costs nothing. vfx_boar_death is the last
// resort because it is what the Aswid uses and is certain to exist.
public static readonly string[] RavagerMorphInEffects = { "fx_seeker_brute_spawn", "fx_seeker_spawn", "vfx_boar_death" };
public static readonly string[] RavagerMorphOutEffects = { "fx_seeker_brute_death", "fx_seeker_death", "vfx_boar_death" };
// ─── Palette ─────────────────────────────────────────────────────────
// Read off a Seeker Soldier. The exposed skin is almost black and matte: what makes the