warvulture
This commit is contained in:
parent
e9d6e78ec8
commit
4b95e705e7
9 changed files with 418 additions and 12 deletions
|
|
@ -444,6 +444,65 @@ namespace RacesOfValheim
|
|||
|
||||
public static readonly Color RotSeedTint = new Color(0.16f, 0.12f, 0.08f, 1f);
|
||||
|
||||
// ─── Root of the Elder (item progression, defensive) ──────────────────
|
||||
// Race-locked, hammer-only, permanent: a piece that heals itself and, once a minute, heals
|
||||
// every player-built thing within reach of it too. Full design in Trenta_ElderRoot.txt.
|
||||
//
|
||||
// No crafting station, same reasoning as the Composter/Grove chain's own station-free entry
|
||||
// point would need if it had one: this is a race identity piece, not a purchase from
|
||||
// someone else's bench (see the War Totem's own note on the same choice).
|
||||
public const string ElderRootPieceName = "TrentaElderRoot";
|
||||
public const string ElderRootDisplayName = "Root of the Elder";
|
||||
|
||||
public const int ElderRootUnlockState = 3; // The Elder dead
|
||||
|
||||
public const string ElderRootRecipeGuck = "Guck";
|
||||
public const int ElderRootRecipeGuckAmount = 5;
|
||||
public const string ElderRootRecipeFineWood = "FineWood";
|
||||
public const int ElderRootRecipeFineWoodAmount = 10;
|
||||
|
||||
// Source of the borrowed model - swamp scenery, already safe to strip under ModelBorrow's
|
||||
// rules (no MonoBehaviour worth stripping in the first place, unlike a living prefab).
|
||||
// THE ELDER'S SUMMONED ROOT - the thing that claws its way out of the ground and attacks
|
||||
// whoever comes near during the boss fight. Verified by its path in manifest_extended:
|
||||
// Assets/Characters/Greydwarf_king/TentaRoot
|
||||
// "Assets/Characters/..." means CREATURE (the same path convention Trol_WarTotem.txt sez.
|
||||
// 2.1 wrote down after the GoblinTotem item/piece mix-up), and "Greydwarf_king" is The
|
||||
// Elder. Its whole kit sits in the same folder - misc/spawn_roots (the emergence),
|
||||
// misc/tentaroot_attack, animation/tentaroot, fx_tentaroot_death, sfx_tentaroot_attack.
|
||||
// The Mistlands Staff of Green Roots summons the same creature (staff_greenroots_tentaroot),
|
||||
// which is the second confirmation that this is a summon and not decoration.
|
||||
//
|
||||
// TWO WRONG PICKS BEFORE THIS ONE, both found by searching the manifest for a word instead
|
||||
// of asking what the boss actually spawns:
|
||||
// "Vines" - unrelated swamp scenery, inert.
|
||||
// "gdking_root_projectile" - the spike the Elder SHOOTS. A projectile/vfx, not the
|
||||
// summon. Still correctly used further down for Muspell's
|
||||
// ranged attack, which is what it really is.
|
||||
//
|
||||
// BORROWING FROM THIS IS NOT LIKE BORROWING SCENERY: it carries a Character, and
|
||||
// ModelBorrow strips in a single pass, which is the exact shape of the bug that once broke
|
||||
// the hammer for every piece in the game. TrentaElderRoot.ResolveModelSource walks to the
|
||||
// "Visual" child first - the same thing FenrirRace and SkadiRace do for their forms - so
|
||||
// no Character is ever handed to ModelBorrow.
|
||||
public const string ElderRootModelSourcePrefab = "TentaRoot";
|
||||
|
||||
/// <summary>Child of a creature prefab that holds only mesh and animator, no Character.</summary>
|
||||
public const string CreatureVisualChildName = "Visual";
|
||||
|
||||
// Height in metres of the borrowed model's largest dimension. NOT a guess any more: the
|
||||
// mesh measures (0.48, 4.51, 0.47) at native size - a tall, thin root - and the first two
|
||||
// tries in game (1.2 then 1.6) both came out about 70% too short. 2.7 m is roughly 60% of
|
||||
// the creature's own height and stands a good head above the player.
|
||||
public const float ElderRootModelSize = 2.7f;
|
||||
|
||||
// Forward to TrentaConfigManagement (BepInEx ConfigEntry) - see that class.
|
||||
public static float ElderRootHealth => TrentaConfigManagement.ElderRootHealth.Value;
|
||||
public static float ElderRootSelfHealDelay => TrentaConfigManagement.ElderRootSelfHealDelay.Value;
|
||||
public static float ElderRootSelfHealPercentPerSecond => TrentaConfigManagement.ElderRootSelfHealPercentPerSecond.Value;
|
||||
public static float ElderRootRepairRadius => TrentaConfigManagement.ElderRootRepairRadius.Value;
|
||||
public static float ElderRootRepairInterval => TrentaConfigManagement.ElderRootRepairInterval.Value;
|
||||
|
||||
// ─── Heartwood Grove (item progression, tier 2) ──────────────────────
|
||||
// Plant a seed, wait, and the tree that comes up fertilises what surrounds it, stings what
|
||||
// approaches it, and fills a chest with honey. Three independent functions on one piece.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue