@kayahr/wastelib
    Preparing search index...

    Class Mob

    Mob stats.

    Index

    Methods

    • Returns the armor class.

      Returns number

      The armor class.

    • Returns the damage type. Unclear how this actually works in combat.

      Returns number

      The damage type.

    • Returns the number of experience points the player gets when killing this mob. This is calculated by multiplying the base hit points with the armor class plus 1.

      Returns number

      The number of XP.

    • Returns the fixed amount of damage the mob inflicts.

      Returns number

      The fixed amount of damage.

    • Returns the hit chance of the mob. The higher this number is the better chance of hitting the target. Unfortunately it's unknown how this actually works.

      Returns number

      The hit chance.

    • Returns the base hit points of the mob. This is used to calculate the minimum and maximum number of hit points and also the experience points the player gets when killing the mob.

      Returns number

      The base hit points.

    • The maximum number of this mob type to appear in one group.

      Returns number

      The maximum number of mobs of this type in one group.

    • Returns the maximum number of hit points. This is calculated by dividing the base hit points by four and then adding the base hit points again. Well, at least I think so. The Deconstruction Wiki says "([B1:B0] / 4) + (rnd B1)(rnd B0)" but it's unclear how rnd works.

      TODO Go and find a good opponent, kill it over and over again and check how many maximum hit points it really has.

      Returns number

      The maximum number of hit points.

    • Returns the minimum number of hit points. This is calculated by dividing the base hit points by four. Well, at least I think so. The Deconstruction Wiki says "([B1:B0] / 4) + (rnd B1)(rnd B0)" but it's unclear how "rnd" works and if the minimum value it returns is 0 or 1.

      TODO Go and find a good opponent, kill it over and over again and check how many minimum hit points it really has.

      Returns number

      The minimum number of hit points.

    • Returns the mob name.

      TODO Implement singular/plural support.

      Returns string

      The mob name.

    • Returns the portrait number to display for this mob.

      Returns number

      The portrait number to display.

    • Returns how much damage (in D6) the monster inflicts additional to the fixed damage.

      Returns number

      The random amount of damage in D6.