feat(forms): Trol True Form and Fenrir form attacks cost stamina
Every form swing was free. FormMelee.TrySpendStamina charges a form attack the way Attack.GetAttackStamina charges a weapon: equipment modifier, status effects, up to a third off with the skill. Short of stamina, the attack does not start and the bar flashes. Trol True Form (Clubs skill), priced by the troll's damage, the slam dearer for hitting all around: punch 10, side log swing 10, overhead log 12, ground slam 18. Fenrir forms (Unarmed), cheaper than weapons: Fenring 6/10/16, Wolf 4/6/10, Ulv 5/8/14, Cultist claw 6 and double claw 12. In exchange each form hit gives 1.5x adrenaline (Fenrir - Form Buffs / Form Adrenaline Multiplier), in Fenrir forms only. Every cost is its own config entry beside the attack's damage.
This commit is contained in:
parent
373b0069dd
commit
ac4ce4c636
5 changed files with 114 additions and 11 deletions
|
|
@ -56,6 +56,10 @@ namespace RacesOfValheim
|
|||
public static ConfigEntry<float> TrueFormTrollDamageShare;
|
||||
public static ConfigEntry<float> TrueFormAttackReach;
|
||||
public static ConfigEntry<bool> TrueFormSlamCrater;
|
||||
public static ConfigEntry<float> TrueFormPunchStamina;
|
||||
public static ConfigEntry<float> TrueFormSlamStamina;
|
||||
public static ConfigEntry<float> TrueFormLogSwingStamina;
|
||||
public static ConfigEntry<float> TrueFormLogOverheadStamina;
|
||||
|
||||
// ─── Log Weapon (tier 7+) ──────────────────────────────────────────────
|
||||
public static ConfigEntry<float> LogWeaponMaxDurability;
|
||||
|
|
@ -149,6 +153,19 @@ namespace RacesOfValheim
|
|||
TrueFormSlamCrater = config.Bind(trueForm, "Ground Slam Crater", true,
|
||||
new ConfigDescription("The ground slam digs into the ground where it lands, like a pickaxe blow. Never inside a ward you have no access to."));
|
||||
|
||||
// Priced by the troll's own damage (punch and side log swing 60 blunt, slam and overhead
|
||||
// log 70), with the slam dearer because it hits all around: vanilla charges a sledge about
|
||||
// twice a mace for similar damage. An iron mace swing costs 10, an iron sledge 20.
|
||||
const string staminaNote = " Base stamina, cut by up to a third with the Clubs skill as a club's is. 0 makes it free.";
|
||||
TrueFormPunchStamina = config.Bind(trueForm, "Punch Stamina", 10f,
|
||||
new ConfigDescription("Stamina for the punch (Left Mouse)." + staminaNote, new AcceptableValueRange<float>(0f, 60f)));
|
||||
TrueFormSlamStamina = config.Bind(trueForm, "Ground Slam Stamina", 18f,
|
||||
new ConfigDescription("Stamina for the ground slam (Middle Mouse)." + staminaNote, new AcceptableValueRange<float>(0f, 60f)));
|
||||
TrueFormLogSwingStamina = config.Bind(trueForm, "Log Swing Stamina", 10f,
|
||||
new ConfigDescription("Stamina for the side swing with a log in hand (Left Mouse)." + staminaNote, new AcceptableValueRange<float>(0f, 60f)));
|
||||
TrueFormLogOverheadStamina = config.Bind(trueForm, "Log Overhead Stamina", 12f,
|
||||
new ConfigDescription("Stamina for the overhead swing with a log in hand (Middle Mouse)." + staminaNote, new AcceptableValueRange<float>(0f, 60f)));
|
||||
|
||||
const string logWeapon = "Trol - Log Weapon";
|
||||
LogWeaponMaxDurability = config.Bind(logWeapon, "Max Durability", 6f,
|
||||
new ConfigDescription("Hits a grabbed log weapon survives before breaking, tier 7+.", new AcceptableValueRange<float>(1f, 50f)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue