feat(aswid): blood refinery and blood potions
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
b1f5da2249
commit
fae82162be
5 changed files with 1185 additions and 7 deletions
|
|
@ -24,9 +24,13 @@ namespace RacesOfValheim
|
|||
{ "Leech", "TrophyLeech" },
|
||||
{ "Hatchling", "TrophyHatchling" },
|
||||
{ "Lox", "TrophyLox" },
|
||||
{ "Fuling", "TrophyGoblin" },
|
||||
{ "FulingShaman", "TrophyGoblinShaman" },
|
||||
{ "FulingBerserker", "TrophyGoblinBrute" },
|
||||
// The Fuling family is named Goblin* in code - "Fuling" is only ever the display name,
|
||||
// and no prefab by that name exists. These three keys never matched anything, so the
|
||||
// Aswid could not drain a Fuling of any kind. Verified against the asset manifest.
|
||||
{ "Goblin", "TrophyGoblin" },
|
||||
{ "GoblinArcher", "TrophyGoblin" },
|
||||
{ "GoblinShaman", "TrophyGoblinShaman" },
|
||||
{ "GoblinBrute", "TrophyGoblinBrute" },
|
||||
{ "Deathsquito", "TrophyDeathsquito" },
|
||||
{ "Hare", "TrophyHare" },
|
||||
{ "Seeker", "TrophySeeker" },
|
||||
|
|
@ -35,7 +39,7 @@ namespace RacesOfValheim
|
|||
{ "Gjall", "TrophyGjall" },
|
||||
{ "Tick", "TrophyTick" },
|
||||
{ "Ulv", "TrophyUlv" },
|
||||
{ "Cultist", "TrophyCultist" },
|
||||
{ "Fenring_Cultist", "TrophyCultist" }, // the prefab is Fenring_Cultist, not "Cultist"
|
||||
{ "Asksvin", "TrophyAsksvin" },
|
||||
{ "Volture", "TrophyVolture" }
|
||||
};
|
||||
|
|
@ -84,6 +88,7 @@ namespace RacesOfValheim
|
|||
{
|
||||
AswidStatusEffects.RegisterStatusEffects();
|
||||
CreateFoodItems();
|
||||
AswidBloodRefinery.Register();
|
||||
|
||||
GameObject geirrhafa = Jotunn.Managers.PrefabManager.Cache.GetPrefab<GameObject>("Fenring_Cultist_Hildir");
|
||||
if (geirrhafa != null)
|
||||
|
|
@ -137,7 +142,10 @@ namespace RacesOfValheim
|
|||
{
|
||||
float foodHp = Mathf.Min(c.m_health / 2f, 150f);
|
||||
float burnTime = c.m_health * 2f;
|
||||
if (mobName == "Cultist" || mobName.StartsWith("Fenring") || mobName.StartsWith("Fuling"))
|
||||
// StartsWith("Fenring") already covers Fenring_Cultist. "Fuling" was
|
||||
// never a prefab prefix - the family is Goblin* - so that arm of the
|
||||
// test matched nothing until now.
|
||||
if (mobName.StartsWith("Fenring") || mobName.StartsWith("Goblin"))
|
||||
{
|
||||
burnTime = 1200f; // 20 minutes
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue