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>
40 lines
1.6 KiB
C#
40 lines
1.6 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|