Module necro.game.system.Damage
Functions
getBaseDamage (entity) | |
inflict (parameters) | |
knockback (entity, direction, distance, moveType, beatDelay) |
Tables
Flag | |
Type |
Functions
- getBaseDamage (entity)
-
Parameters:
- entity
- inflict (parameters)
-
Parameters:
- parameters
- knockback (entity, direction, distance, moveType, beatDelay)
-
Parameters:
- entity
- direction
- distance
- moveType
- beatDelay
Tables
- Flag
-
Fields:
- BYPASS_ARMOR
1
- Ignores armors and shields - BYPASS_INVINCIBILITY
2
- Ignores iframes, stasis and similar invincibility mechanics - BYPASS_DEATH_TRIGGERS
4
- When lethal, ignores some on-death effects - STRENGTH_BASED
8
- Is increased by damage-ups (strength charm, etc) - EXPLOSIVE
16
- Is increased by bomb upgrades (grenades, mana), is prevented by blast helm - PARRYABLE
32
- Can be parried - SELF_DAMAGE
64
- Preserves groove chain, preserves fragile items, doesn’t trigger shrine of pain, ignores multipliers - IGNORE_GRABBED
128
- Deals no damage to grabbed entities - TRAP
256
- Is prevented by lead boots - TERRAIN
512
- Is prevented by explorers / floaties - VOICE_SQUISH
1024
- Causes the damaged entity to use an alternate hit voice line - GOLDEN_LUTE
2048
- Can damage the NecroDancer - EARTHQUAKE
4096
- Can damage DR’s gong - IGNORE_SHEEP
8192
- Cannot damage Marv - BYPASS_IMMUNITY
16384
- Ignores spawn immunity and stairs immunity - ELECTRIC
32768
- Depletes the Conductor’s batteries - FIRE
65536
- Melts ice
- BYPASS_ARMOR
- Type
-
Fields:
- PHYSICAL
40
- Damage dealt by weapons or normal enemy attacks, - PIERCING
1
- Piercing damage - PHASING
3
- Phasing damage (urf, telefrags) - EXPLOSIVE
65680
- Damage dealt by explosions (bombs, pixies, goblin bombers) - BLOOD
67
- Blood damage (blood magic, blood shop, equipping pain items) - SELF_DAMAGE
65
- Self-damage that doesn’t bypass iframes (Aria missed beats) - SUICIDE
16455
- Unpreventable damage resulting in an instant death (vow of poverty, cowardice) - MAGIC
128
- Magic damage (fireball, pulse, need) - INDIRECT
32
- Weapon-like damage that doesn't benefit from damage-ups (golden lute, boots of pain) - TRAP
256
- Damage dealt by a floor trap (spike trap) - SPECIAL
0
- Other damage (lunging, trampling, mushroom spores, yeti claps) - SQUISHY
1024
- Damage from being shoved against a wall - EARTHQUAKE
4103
- Damage dealt by earthquakes
- PHYSICAL