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:
Ferdinando 2026-08-11 07:55:23 +02:00
commit 0294d6a71b
10 changed files with 67 additions and 943 deletions

View file

@ -194,28 +194,7 @@ namespace RacesOfValheim
{
if (__instance != Player.m_localPlayer || __0 == null) return true;
if (!HollowAllowsPiece(__instance, __0)) return false;
return PieceDensityLimit.Allow(__instance, Utils.GetPrefabName(__0.gameObject), __1);
}
/// <summary>
/// "You may build in your hollow, but nothing takes root there." Rides along on this prefix
/// rather than adding a second one, which is the whole reason this class exists.
///
/// Worth knowing that the refusal is about the MESSAGE, not about making the impossible
/// impossible: a Plant needs cultivated ground and a matching biome (Plant.m_needCultivated-
/// Ground, Plant.m_biome), and five kilometres above the sea there is no terrain to cultivate
/// and no biome to match, so a seed would have failed anyway - with a vanilla error that says
/// nothing useful about why.
/// </summary>
private static bool HollowAllowsPiece(Player player, Piece piece)
{
if (!SkadiHollow.IsInside(player)) return true;
if (piece.GetComponentInChildren<Plant>(true) == null) return true;
player.Message(MessageHud.MessageType.Center, "Nothing takes root here.");
return false;
}
}
}