feat(alfar): v1.6.0 - the Alfar, an eleventh race
Grey, tall and thin, with black eyes. Eitr is armour and fuel (shield, diet, soft fall, levitation), Heimkall sends a lethal blow home at one health every 20 minutes. Caster powers from Skrid to the archon Sameining, with on-screen cooldowns. Automated base around the Ljoskjarne: drones, three constructs, crystals, Ljosgard, Prismavard. Compendium page in EN/IT/RU. README: New in block, race section, progression, station line, changelog. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9e9790d1e9
commit
3f8cf1ee27
48 changed files with 7779 additions and 16 deletions
40
JotunnModStub/Alfar/AlfarRace.cs
Normal file
40
JotunnModStub/Alfar/AlfarRace.cs
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
namespace RacesOfValheim
|
||||
{
|
||||
/// <summary>
|
||||
/// The Alfar: light-bodied casters whose one resource is eitr (Alfar_Progettazione.txt).
|
||||
///
|
||||
/// Only the race check lives here for now. The shield, the death timer, the powers and the
|
||||
/// Nexus each get their own file as they are written; the look is AlfarVisuals and its patches.
|
||||
/// </summary>
|
||||
public static class AlfarRace
|
||||
{
|
||||
/// <summary>
|
||||
/// Everything the race registers with Jotunn. Called from RacesOfValheim.CreateAllModAssets,
|
||||
/// which runs on PrefabManager.OnVanillaPrefabsAvailable: the one moment Jotunn takes new
|
||||
/// status effects, items and prefabs into ObjectDB. Registered later, nothing can spawn.
|
||||
/// </summary>
|
||||
public static void CreateModAssets()
|
||||
{
|
||||
AlfarStatusEffects.Register();
|
||||
AlfarDrones.Register();
|
||||
AlfarConstructs.Register();
|
||||
AlfarSigil.Register();
|
||||
AlfarNexus.Register();
|
||||
AlfarChests.Register();
|
||||
AlfarLjosgard.Register();
|
||||
AlfarTowers.Register();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The local player's race, read from m_customData like every other race's IsXxx() (guide
|
||||
/// 5.4: never from the body model index, which is not a race).
|
||||
/// </summary>
|
||||
public static bool IsLocalAlfar()
|
||||
{
|
||||
Player player = Player.m_localPlayer;
|
||||
return player != null &&
|
||||
player.m_customData.TryGetValue("Race", out string race) &&
|
||||
race == AlfarConfig.RaceId;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue