cst-attack-speed

Implement attack speed skills using AnimationSpeedManager and SetAnimationSpeed.

1|Updated Jul 15, 2025
One-click install
npx skills add https://github.com/KorCaptain/Valheim_Captain_SkillTree --skill cst-attack-speed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cst-attack-speed
Source: https://github.com/KorCaptain/Valheim_Captain_SkillTree/tree/main/.claude/skills/cst-attack-speed
Command: npx skills add https://github.com/KorCaptain/Valheim_Captain_SkillTree --skill cst-attack-speed

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides developers to implement attack speed skills by enforcing safe integration with AnimationSpeedManager and clear rules for speed manipulation, reducing runtime errors and configuration drift.

Core Features & Use Cases

  • Enforces usage of AnimationSpeedManager.dll and SetAnimationSpeed for attack speed adjustments, ensuring consistent behavior across client and server.
  • Prohibits direct animator.speed manipulation and reflective access to speed controls, preventing conflicts and crashes.
  • Integrates with SkillBonusCalculator for cumulative speed bonuses and supports both built-in and EpicMMOSystem-based leveling as applicable.
  • Use Case: A new attack-speed skill adjusts a player's speed when activated and reverts after the effect duration, with server-synced values and proper balance.

Quick Start

Call AnimationSpeedManager.Instance.SetAnimationSpeed(player, speed) to apply the desired attack speed.

Frequently Asked Questions about cst-attack-speed

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely change attack speed in a Valheim mod without causing crashes?

Use AnimationSpeedManager.Instance.SetAnimationSpeed(player, speed) to apply attack speed adjustments. This ensures consistent behavior across client and server, preventing the runtime conflicts caused by direct animator.speed manipulation.

Why does directly modifying animator.speed cause issues in Valheim mods?

Directly modifying animator.speed causes configuration drift and runtime errors by bypassing safe integration. Using SetAnimationSpeed via AnimationSpeedManager.dll ensures proper server-synced behavior and prevents conflicts with other animation systems.

How are cumulative attack speed bonuses calculated with SkillBonusCalculator?

Cumulative attack speed bonuses are calculated by integrating with SkillBonusCalculator, which correctly accounts for speed adjustments across multiple skill trees and supports both built-in and EpicMMOSystem-based leveling systems.

Do I need AnimationSpeedManager.dll to implement attack speed skills in Valheim?

Yes, AnimationSpeedManager.dll is required. It enforces safe integration for per-attack-speed adjustments across multiple skill trees and guarantees server-synced behavior without relying on reflection or direct animator manipulation.

Can I use reflection to access speed controls for my Valheim attack speed skill?

No, reflective access to speed controls is prohibited. You must rely on SetAnimationSpeed and SkillBonusCalculator to ensure correct bonus accounting and maintain safe, server-synced behavior across the mod.

What is the best way to revert an attack speed buff after its duration ends?

The best way to revert an attack speed buff is to use SetAnimationSpeed to apply the adjusted speed when activated and revert it after the effect duration, ensuring server-synced values and proper balance.