Interface IDBCEvent.DamagedEvent

    • Method Detail

      • getDamage

        float getDamage()
        Calculated based on Player's Stats, Dex, Blocking, etc.
        Returns:
        Damage Dealt to the HP of the Player
      • setDamage

        void setDamage​(float damage)
        Allows you to change / intercept the damage to HP and modify to set new HP. Note if Damage is 0 - then it could be Friendly Fist protecting player. Making this greater could kill the player.
        Parameters:
        damage - The new damage to HP
      • getStaminaReduced

        int getStaminaReduced()
        Returns:
        the stamina reduction
      • setStaminaReduced

        void setStaminaReduced​(int stamina)
        Parameters:
        stamina - The new stamina to reduce
      • willKo

        boolean willKo()
      • getKiReduced

        int getKiReduced()
        Returns:
        the ki reduction
      • setKiReduced

        void setKiReduced​(int ki)
        Parameters:
        ki - The new ki to reduce
      • getDamageSource

        IDamageSource getDamageSource()
        Returns:
        IDamageSource
      • isDamageSourceKiAttack

        boolean isDamageSourceKiAttack()
        Returns:
        Damage Type == 3
      • getType

        float getType()
        Returns:
        0: Unknown, 1: Player, 2: NPC, 3: Ki Attack