feat(skadi): remove Skadis Nokkel and the hidden hollow
The staff opened a pair of client-side portals into a claimed troll cave, and that whole mechanism broke in multiplayer. The two Harmony patches it needed were the sharpest edge: SkadiNokkelCastPatch prefixed Attack.OnAttackTrigger and SkadiNokkelFreeCastPatch postfixed the three cost getters, so every attack by every character in the game went through mod code before being filtered. Nothing is put in its place, on purpose. The Crystal Golem is the Skadi's station now and the balance was already settled around it, and the part of the hollow that was actually worth having - Skadi and Trol building inside any troll cave - lives in RaceCaveBuilding and is untouched. Removed: SkadiNokkel.cs, SkadiHollow.cs, SkadiHollowPortal.cs, the "Skadi - Hidden Hollow" config section, the HOLLOW_COOLDOWN_SE status effect, the F8 dump, and the "Nothing takes root here" rule in PieceDensityLimit, which existed only for the hollow. Kept: SkadiIce, which the staff's file happened to host but the Frost Heart and the golem both use - moved to its own file. Greater Frost Heart stays on sale from the Fenring_Cultist at 1500 as it was. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
e9f41a86e3
commit
0294d6a71b
10 changed files with 67 additions and 943 deletions
|
|
@ -33,7 +33,6 @@ namespace RacesOfValheim
|
|||
// rebuild - see CONFIGURATION-MANAGER-HOWTO.md.
|
||||
public const string SPELL_COOLDOWN_SE = "SE_SkadiSpellCooldown";
|
||||
public const string ATTACK_COOLDOWN_SE = "SE_SkadiAttackCooldown";
|
||||
public const string HOLLOW_COOLDOWN_SE = "SE_SkadiHollowCooldown";
|
||||
|
||||
private static float SPELL_STAMINA_COST => SkadiConfig.SpellStaminaCost.Value;
|
||||
private static float SPELL_COOLDOWN => SkadiConfig.SpellCooldown.Value;
|
||||
|
|
@ -53,9 +52,8 @@ namespace RacesOfValheim
|
|||
{
|
||||
// The reagent goes first: the faction merchant catalogue resolves its entries by prefab
|
||||
// name, so Greater Frost Heart has to exist before a Fenring_Cultist is ever set up as a
|
||||
// bench - and the staff's recipe references it by name too.
|
||||
// bench.
|
||||
SkadiFrostHeart.Register();
|
||||
SkadiNokkel.Register();
|
||||
SkadiGolem.Register();
|
||||
|
||||
var se = ScriptableObject.CreateInstance<SE_SkadiStats>();
|
||||
|
|
@ -109,13 +107,6 @@ namespace RacesOfValheim
|
|||
attackCd.m_tooltip = "Your dragon shape must ready itself to strike again.";
|
||||
attackCd.m_icon = GetItemIcon("TrophyHatchling") ?? dragonIcon;
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(attackCd, fixReference: false));
|
||||
|
||||
var hollowCd = ScriptableObject.CreateInstance<SE_SkadiAbilityCooldown>();
|
||||
hollowCd.name = HOLLOW_COOLDOWN_SE;
|
||||
hollowCd.m_name = "Skadis Nokkel";
|
||||
hollowCd.m_tooltip = "The way to your hollow must freeze over again before it will open.";
|
||||
hollowCd.m_icon = GetItemIcon("StaffIceShards") ?? dragonIcon;
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(hollowCd, fixReference: false));
|
||||
}
|
||||
|
||||
// Drives the HUD countdown: Valheim prints the remaining time on any status effect whose
|
||||
|
|
@ -152,8 +143,8 @@ namespace RacesOfValheim
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// The same check, reachable without an Instance - which the Nokkel's Harmony patch and the
|
||||
/// hollow both need, since they run from static context.
|
||||
/// The same check, reachable without an Instance - which the golem and the cave-building
|
||||
/// watcher both need, since they run from static context.
|
||||
/// </summary>
|
||||
public static bool IsLocalSkadi()
|
||||
{
|
||||
|
|
@ -255,8 +246,7 @@ namespace RacesOfValheim
|
|||
DumpPrefabDebugInfo("Dragon");
|
||||
DumpPrefabDebugInfo("Hatchling");
|
||||
DumpPrefabDebugInfo("Fader");
|
||||
SkadiNokkel.DumpSource();
|
||||
if (Player.m_localPlayer != null) Player.m_localPlayer.Message(MessageHud.MessageType.Center, "Dumped Dragon/Drake/Fader + Nokkel debug info to console!");
|
||||
if (Player.m_localPlayer != null) Player.m_localPlayer.Message(MessageHud.MessageType.Center, "Dumped Dragon/Drake/Fader debug info to console!");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue