feat(trenta): add the Trenta race
A vegan, tree-born race unlocking new perks per boss defeated: skin/hair tint, blocked non-vegan food, awakened seed foods after Eikthyr, a mob hostility list, Photosynthesis, elemental resistances, Purple Rain after the Elder, swim/poison/wet immunity after Bonemass, Last Stand and Thorns after Moder, a Homecoming Portal after Yagluth, Hornet's Nest after the Queen, and Muspell (a half-size Elder transformation with Stomp/Spike attacks) after Fader. Also fixes RaceScale never listing Trenta as self-sizing, which let a shared Player.Update postfix fight Muspell's own scale changes every frame.
This commit is contained in:
parent
d164579e00
commit
d0ed92c553
14 changed files with 2430 additions and 2 deletions
|
|
@ -54,12 +54,33 @@ namespace RacesOfValheim
|
|||
if (p.m_customData.ContainsKey("Race") && p.m_customData["Race"] == "Draugh")
|
||||
{
|
||||
string prefabName = monster.gameObject.name.ToLower();
|
||||
if (prefabName.Contains("skeleton") || prefabName.Contains("draugr") ||
|
||||
if (prefabName.Contains("skeleton") || prefabName.Contains("draugr") ||
|
||||
prefabName.Contains("ghost") || prefabName.Contains("wraith"))
|
||||
{
|
||||
__result = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Trenta Race Logic - base passive, live from the start (no progression
|
||||
// gate, unlike Aswid's escalating list above).
|
||||
//
|
||||
// IsEnemy=false is the only lever this patch has, and it produces one
|
||||
// behaviour: the mob never initiates. It reads as two different relationships
|
||||
// only in flavour text - Greyling/Greydwarf/Leech/Deathsquito "don't see" a
|
||||
// Trenta as prey (root-kin, or simply nothing with blood to sense), while
|
||||
// Fuling/Troll "choose" not to fight one - but there is no third state to code
|
||||
// for: vanilla's own damage-response AI already makes any of them retaliate if
|
||||
// the Trenta strikes first, same as it does for Fenrir's wolves above.
|
||||
if (p.m_customData.ContainsKey("Race") && p.m_customData["Race"] == TrentaConfig.RaceId)
|
||||
{
|
||||
string prefabName = monster.gameObject.name.ToLower();
|
||||
if (prefabName.Contains("greyling") || prefabName.Contains("greydwarf") ||
|
||||
prefabName.Contains("fuling") || prefabName.Contains("troll") ||
|
||||
prefabName.Contains("leech") || prefabName.Contains("deathsquito"))
|
||||
{
|
||||
__result = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue