Beispiel #1
0
        public static void RaiseWeaponPowerBy(int value)
        {
            currentWeaponPower += value;
            if (currentWeaponPower > 10)
            {
                currentWeaponPower = 10;
            }

            WeaponPowerChanged?.Invoke(currentWeaponPower, new EventArgs());
        }
Beispiel #2
0
        public static void LowerWeaponPowerBy(int value)
        {
            currentWeaponPower -= value;
            if (currentWeaponPower < 0)
            {
                int dmg = Math.Abs(currentWeaponPower);
                PartyActions.DamageAllPlayers(dmg);

                currentWeaponPower = 0;
            }

            WeaponPowerChanged?.Invoke(currentWeaponPower, new EventArgs());
        }
Beispiel #3
0
        public static void SetStartValue(int start)
        {
            if (start < 0)
            {
                start = 0;
            }
            if (start > 10)
            {
                start = 10;
            }

            currentWeaponPower = start;
            WeaponPowerChanged?.Invoke(currentWeaponPower, new EventArgs());
        }