Combat

From Lootbox RPG Wiki
Revision as of 07:11, 18 April 2024 by Lbwikiadmin (talk | contribs) (Created page with "== How combat works == When you try to hit an enemy, the following things happen: 1. The defense value of the enemy is determined. * defense = "Defense"-Attribute of the enemy. * if in hardmode, defense is multiplied by 3. * if the creature is Elite (Crown above head), 10 is added. 2. The offense value of the player is determined. * offense = Skill "Melee" if enemy is on adjacent tile and a melee weapon is used. Skill "Ranged" if enemy is more than 1 tile away and a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How combat works

When you try to hit an enemy, the following things happen:

1. The defense value of the enemy is determined.

  • defense = "Defense"-Attribute of the enemy.
  • if in hardmode, defense is multiplied by 3.
  • if the creature is Elite (Crown above head), 10 is added.

2. The offense value of the player is determined.

  • offense = Skill "Melee" if enemy is on adjacent tile and a melee weapon is used. Skill "Ranged" if enemy is more than 1 tile away and a ranged weapon is equipped.
  • if it is dark (player in dungeon without light source), the offense is halfed.

3. The hit Chance is calculated:

chance = 50 + (offense - defense) * 5

4. Bonus against the Creature Type is applied:

chance += Bonus against Creature Type * 5

The bonus is based on the amount of Creature Cards the player has collected.

5. Stamina is taken into account. If the player's stamina is 0, the chance is halfed.

6. If it is dark and the attack is ranged, the chance is set to 0.

7. IF a random number between 1 and 100 is LESS THAN the calculated chance, the attack HITS.