Combat System - Krokodyl/dokapon-english GitHub Wiki

Battle Cards

Combats is turn-based and each turn has 2 phases: an attacking phase and defending phase.

At the beginning of each turn, you choose a face down battle card.
(Press left or right to swap cards).

The card determines which phase you will get first.

Attacking Phase

Button Action Effect
A Attack A normal attack with your equipped weapon.
If the enemy speed is higher, they may dodge.
Y Strike A powerful attack with your equipped weapon.
Deals more damage than a normal attack if it lands.
If the enemy speed is higher, they may dodge.
If the enemy counters, they return all damage to the attacker.
X Magic Attack An attack with your equipped magic attack (The name will change accordingly).
Consumes one magic use.
This action is not available if you have no magic attack equipped or if you run out of uses.
B Focus You don't attack but you get a temporary bonus of +50% AT.
The bonus can be stacked several times.
The bonus wears off after attacking or ending the fight.

During this phase, you can cycle through your items with R or L.
If an item is usable it will appear white, if not it will be red.

Using an item ends your turn.

Defending Phase

Button Action Effect
A Defend Blocks the most damage against Attack.
Y Counter Returns all damage if the enemy uses Strike, otherwise increases the damage taken.
X Magic Defense Blocks all damage from a magic attack. Additional effects depend on your equipped magic defense. Takes extra damage from Attack or Strike.
B Escape You may escape the fight at the cost of losing one of your possession. If the enemy speed is higher, escape can fail and increase any damage taken.

Stats

Stat Effect
Attack (AT) Increases the damage dealt with Attack or Strike
Defense (DF) Reduces the damage taken from Attack or Strike
Magic (MA) Increases the damage dealt by Magic Attack
Reduces the damage taken from Magic Attack
Affects Field Magic: damage dealt, damage received, accuracy and dodge rate
Increases the number of Field Magic you can have (+1 per 10 pts rounded down, min 2, max 8)
Speed (SP) Increases the chance to hit and the chance to dodge
Health Increases maximum HP by 10 for each point.

Damage Calculation

Attacker Defender Damage
Attack Defend ((AT * 1.5) - DF) * 5.5
Attack Counter ((AT * 1.5) - DF) * 6.5
Attack Magic Defense
Escape
((AT * 1.5) - DF) * 7.5
Strike Defend ((AT * 1.5) - DF) * 7.5
Strike Counter ((AT * 1.5) - DF) * 13
(Damage dealt to the attacker)
Strike Magic Defense ((AT * 1.5) - DF) * 9
Strike Escape ((AT * 1.5) - DF) * 11
Magic Attack Defend
Counter
Escape
(Attacker MA - Defender MA) * Magic Attack Multiplier
Magic Attack Magic Defense 0

Combat Outcome

If you defeat a normal monster you get:

  • experience points
  • gold
  • any item or magic the monster had

If you defeat a big monster you get:

  • gold
  • any item or magic the monster had

If you defeat another player you may:

  • take some of their gold
  • take one item
  • take one field magic
  • take a town
  • take one piece of gear (weapon, armor or shield)
  • change their name (they can change it back in Dokapon Castle for a fee)

If the other player escapes, you may only:

  • take some of their gold
  • take one item
  • take one field magic

If you escape a fight:

  • you lose gold, one item or one field magic
  • your next turn is skipped

If you are defeated by a monster, you may lose:

  • gold
  • an item
  • a field magic
  • gear
  • a town and you rest several turns in the last church (or Dokapon Castle) you visited

If you die without any weapon, armor and shield, the king will give you some basic replacement gear.

⚠️ **GitHub.com Fallback** ⚠️