jotunn 2.30 compatibility + minor bugs
This commit is contained in:
parent
6193b3ee2d
commit
ce671e7124
14 changed files with 107 additions and 49 deletions
|
|
@ -92,15 +92,15 @@ namespace RacesOfValheim
|
|||
{
|
||||
StartCoroutine(HowlRoutine());
|
||||
}
|
||||
else if (Input.GetMouseButtonDown(1)) // Tasto destro (Heavy Claw)
|
||||
else if (RaceInput.AttackDown(1)) // Tasto destro (Heavy Claw)
|
||||
{
|
||||
StartCoroutine(ClawRoutine("attack_claw1", FenrirConfig.FenringHeavyClawDamage.Value, 1.2f, 0.5f));
|
||||
}
|
||||
else if (Input.GetMouseButtonDown(0)) // Tasto sinistro
|
||||
else if (RaceInput.AttackDown(0)) // Tasto sinistro
|
||||
{
|
||||
StartCoroutine(ClawRoutine("attack_claw0", FenrirConfig.FenringLightClawDamage.Value, 1.0f, 0.4f));
|
||||
}
|
||||
else if (Input.GetMouseButtonDown(2)) // Tasto centrale
|
||||
else if (RaceInput.AttackDown(2)) // Tasto centrale
|
||||
{
|
||||
StartCoroutine(JumpAttackRoutine());
|
||||
}
|
||||
|
|
@ -346,7 +346,7 @@ namespace RacesOfValheim
|
|||
bool canAct = RaceInput.Allowed;
|
||||
|
||||
// Fire attack on Right Click
|
||||
if (canAct && Input.GetMouseButton(1))
|
||||
if (canAct && RaceInput.AttackHeld(1))
|
||||
{
|
||||
if (Player.m_localPlayer.GetEitr() > 0)
|
||||
{
|
||||
|
|
@ -375,12 +375,12 @@ namespace RacesOfValheim
|
|||
}
|
||||
|
||||
// Attacks on Left Click
|
||||
if (canAct && Input.GetMouseButtonDown(0) && !isShootingFire)
|
||||
if (canAct && RaceInput.AttackDown(0) && !isShootingFire)
|
||||
{
|
||||
StartCoroutine(ClawRoutine()); // Single claw
|
||||
}
|
||||
// Double claw on Middle Click
|
||||
else if (canAct && Input.GetMouseButtonDown(2) && !isShootingFire)
|
||||
else if (canAct && RaceInput.AttackDown(2) && !isShootingFire)
|
||||
{
|
||||
StartCoroutine(DoubleClawRoutine());
|
||||
}
|
||||
|
|
@ -706,15 +706,15 @@ namespace RacesOfValheim
|
|||
|
||||
if (isGrounded && RaceInput.Allowed)
|
||||
{
|
||||
if (Input.GetMouseButtonDown(0)) // Left Click
|
||||
if (RaceInput.AttackDown(0)) // Left Click
|
||||
{
|
||||
StartCoroutine(WolfAttackRoutine("attack1", FenrirConfig.WolfAttack1Damage.Value, 0.6f, 0.2f));
|
||||
}
|
||||
else if (Input.GetMouseButtonDown(1)) // Right Click
|
||||
else if (RaceInput.AttackDown(1)) // Right Click
|
||||
{
|
||||
StartCoroutine(WolfAttackRoutine("attack2", FenrirConfig.WolfAttack2Damage.Value, 0.8f, 0.3f));
|
||||
}
|
||||
else if (Input.GetMouseButtonDown(2)) // Middle Click
|
||||
else if (RaceInput.AttackDown(2)) // Middle Click
|
||||
{
|
||||
StartCoroutine(WolfAttackRoutine("attack3", FenrirConfig.WolfAttack3Damage.Value, 1.0f, 0.4f));
|
||||
}
|
||||
|
|
@ -879,16 +879,16 @@ namespace RacesOfValheim
|
|||
|
||||
if (isGrounded && RaceInput.Allowed)
|
||||
{
|
||||
if (Input.GetMouseButtonDown(0)) // Left Click
|
||||
if (RaceInput.AttackDown(0)) // Left Click
|
||||
{
|
||||
StartCoroutine(UlvAttackRoutine("attack_bite", FenrirConfig.UlvBiteDamage.Value, 0.6f, 0.2f));
|
||||
}
|
||||
else if (Input.GetMouseButtonDown(1)) // Right Click
|
||||
else if (RaceInput.AttackDown(1)) // Right Click
|
||||
{
|
||||
// Right click uses bite but as a heavier attack since slash is moved to jump
|
||||
StartCoroutine(UlvAttackRoutine("attack_bite", FenrirConfig.UlvHeavyBiteDamage.Value, 0.8f, 0.3f));
|
||||
}
|
||||
else if (Input.GetMouseButtonDown(2)) // Middle Click
|
||||
else if (RaceInput.AttackDown(2)) // Middle Click
|
||||
{
|
||||
StartCoroutine(UlvJumpAttackRoutine());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue