コード例 #1
0
    void ChangeStats(int multiplier)
    {
        multiplier = Mathf.Clamp(multiplier, -1, 1);

        m_Stats.AddMaxHealth(m_Item.m_MaxHealth * multiplier);
        m_Stats.AddHealthMulti(m_Item.m_HealthMulti * multiplier);

        m_Stats.AddMinDamage(m_Item.m_MinDamage * multiplier);
        m_Stats.AddMaxDamage(m_Item.m_MaxDamage * multiplier);
        m_Stats.AddDamageMulti(m_Item.m_DamageMulti * multiplier);

        m_Stats.AddAttackSpeed(m_Item.m_AttackSpeed * multiplier);
        m_Stats.AddAttackSpeedMulti(m_Item.m_AttackSpeedMulti * multiplier);

        m_Stats.AddMovementSpeed(m_Item.m_MovementSpeed * multiplier);
        m_Stats.AddMovementMulti(m_Item.m_MovementMulti * multiplier);

        m_Stats.AddKnockbackForce(m_Item.m_KnockbackForce * multiplier);
        m_Stats.AddKnockbackMulti(m_Stats.m_KnockbackMulti * multiplier);
    }