← Back to the website
CZ / EN

Lightning Resistance (APPLY_RESIST_ELEC)

Drops, yang & EXPBonusesAlchemy (dragon stones)SashesHorseBooks & biologistDrop simulations

← All bonuses

In gameLightning Resistance X%
KindResistances
In the codeAPPLY_RESIST_ELEC (36) → POINT_RESIST_ELEC

What it does

Reduces the damage of monsters attacking with lightning (all their normal attacks – melee, arrows and magic) and lightning skills by X %: attack × (100 − X) / 100. A monster counts with one element only: with several, the first in the order lightning, fire, ice, wind, earth, darkness applies.

Data source: game/src/battle.cpp, game/src/char_battle.cpp, game/src/char.cpp, game/src/constants.cpp (aApplyInfo)

Which monsters it helps against (36)

Monsters attacking with the element Lightning – all their normal attacks. List of monsters with this element → Example: a monster attack of 1,000 and a bonus of 20 % → 1,000 × (100 − 20) / 100 = 800.

Monster attack typeMonsters
melee (MELEE): 2727 list →
ranged (arrows, RANGE): 99 list →

Data source: mob_proto.txt (BATTLE_TYPE, RACE_FLAG), game/src/char_battle.cpp (CHARACTER::Attack, CFuncShoot, CHARACTER::Damage), game/src/battle.cpp (battle_melee_attack, CalcAttBonus)

Random item bonus (1st–5th)

Weight in the item_attr table: 18. The chance is for the first free slot of an item that has no other bonus yet; it changes slightly with every bonus the item already has.

ItemChanceGrade 1Grade 2Grade 3Grade 4Grade 5
Weapon not possible
Armour 4.38% Lightning Resistance 2%Lightning Resistance 4%Lightning Resistance 6%Lightning Resistance 10%Lightning Resistance 15%
Bracelet 3.61% Lightning Resistance 2%Lightning Resistance 4%Lightning Resistance 6%Lightning Resistance 10%Lightning Resistance 15%
Shoes not possible
Necklace not possible
Helmet 3.47% Lightning Resistance 2%Lightning Resistance 4%Lightning Resistance 6%Lightning Resistance 10%Lightning Resistance 15%
Shield not possible
Earrings not possible

Grey value: a higher grade is lowered to the highest allowed on this item type. Costumes (body, hair) take the bonuses of armour and helmet. How bonuses are rolled

Data source: item_attr (server), game/src/item_attribute.cpp

Fixed on items (2)

Items that have the bonus in item_proto (for upgrade chains the range of +0 to +9).

KindItemLevelValue
Shoes Wooden Shoes+0 (10×) 17 1 – 10
Necklace Copper Necklace+0 (10×) 8 1 – 10

Data source: item_proto.txt

Alchemy (dragon stones)

StoneBonusBase (100 %)At most
Dragon garnet basic (always) 1012

The value by grade, clarity and strength of the stone

Sash

A sash takes the bonuses of the weapon or armour it absorbed, at its absorption rate (at most 25 %). Sashes

Data generated 2026-11-22 21:09 (UTC+1) from the server files.