fix(aswid): center Vampiric Aura on the caster and stop transforms from casting the real Guardian Power
Vampiric Aura was centered 2m in front of the player instead of on them, and its Blood Magic scaling only ever added up to +1 damage at level 100; rebalanced to a 1 base + up to 5 scaled split. Aswid Bat Form, Skadi Cold Spell, Skadi Drake/Moder Form and Fenrir Wolf Form all borrow the native "gpower" animator trigger for its arms-raised casting pose. That clip carries a baked-in Animation Event that calls Player.ActivateGuardianPower(), which fired regardless of who triggered the animation - borrowing it silently cast the player's real Guardian Power (and burned its cooldown) whenever one was available. Added a brief, time-based suppression window in RaceInput around each borrowed trigger so only that one call is swallowed. Also includes AswidSpectralClaw.cs, a boss-scaled bare-fist damage item for Aswid, currently disabled pending equip-state fixes. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
4cd452d187
commit
1dbfbd02b6
6 changed files with 354 additions and 11 deletions
|
|
@ -308,6 +308,7 @@ namespace RacesOfValheim
|
|||
{
|
||||
if (IsChanneling) StopChanneling();
|
||||
wasNight = null; // reset so it triggers correctly on spawn/respawn
|
||||
if (Player.m_localPlayer != null) AswidSpectralClaw.PurgeAll(Player.m_localPlayer); // feature disabled for now, see AswidSpectralClaw.cs
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -330,8 +331,6 @@ namespace RacesOfValheim
|
|||
|
||||
UpdateSuperhumanSenses();
|
||||
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
if (Player.m_localPlayer.GetSEMan().HaveStatusEffect("Cold".GetStableHashCode()))
|
||||
|
|
@ -516,7 +515,11 @@ namespace RacesOfValheim
|
|||
activeRules = rules;
|
||||
|
||||
ZSyncAnimation zAnim = Player.m_localPlayer.GetComponent<ZSyncAnimation>();
|
||||
if (zAnim != null) zAnim.SetTrigger("gpower");
|
||||
if (zAnim != null)
|
||||
{
|
||||
RaceInput.SuppressGuardianPowerBriefly();
|
||||
zAnim.SetTrigger("gpower");
|
||||
}
|
||||
|
||||
yield return new WaitForSeconds(1.1f);
|
||||
|
||||
|
|
@ -872,7 +875,7 @@ namespace RacesOfValheim
|
|||
|
||||
try
|
||||
{
|
||||
Vector3 center = Player.m_localPlayer.transform.position + Player.m_localPlayer.transform.forward * 2f;
|
||||
Vector3 center = Player.m_localPlayer.transform.position;
|
||||
float radius = 3f;
|
||||
if (EnvMan.instance != null && EnvMan.IsNight()) radius = 6f;
|
||||
|
||||
|
|
@ -895,10 +898,10 @@ namespace RacesOfValheim
|
|||
float maxHp = c.GetMaxHealth();
|
||||
float currentHp = c.GetHealth();
|
||||
|
||||
float baseDamage = 2.0f;
|
||||
float baseDamage = 1.0f;
|
||||
float bloodMagicFactor = Player.m_localPlayer.GetSkillFactor(Skills.SkillType.BloodMagic);
|
||||
// Lo scaling aggiunge un massimo di +1.0 danni (al livello 100), indipendentemente dal danno base
|
||||
float totalDamage = baseDamage + bloodMagicFactor;
|
||||
// Lo scaling aggiunge un massimo di +5.0 danni (al livello 100), indipendentemente dal danno base
|
||||
float totalDamage = baseDamage + bloodMagicFactor * 5f;
|
||||
|
||||
if (Player.m_localPlayer.GetSEMan().HaveStatusEffect("SE_MistForm".GetStableHashCode()))
|
||||
{
|
||||
|
|
@ -1017,9 +1020,11 @@ namespace RacesOfValheim
|
|||
|
||||
private void UpdateAswidState()
|
||||
{
|
||||
AswidSpectralClaw.PurgeAll(Player.m_localPlayer); // feature disabled for now, see AswidSpectralClaw.cs
|
||||
|
||||
int currentState = BossProgressionManager.GetCurrentProgressionState();
|
||||
var rules = AswidProgression.GetRules(currentState);
|
||||
|
||||
|
||||
ZNetView nview = Player.m_localPlayer.GetComponent<ZNetView>();
|
||||
if (nview != null && nview.IsValid())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue