Crossfire Server, Trunk  1.75.0
Attack types

Macros

#define AT_ACID   0x00000040
 Random equipped item might corrode when hit (64) More...
 
#define AT_BLIND   0x00400000
 Blinds victim (4194304) thoma.nosp@m.s@as.nosp@m.tro.p.nosp@m.su.e.nosp@m.du. More...
 
#define AT_CANCELLATION   0x00008000
 Removes magic from items (32768) ylita.nosp@m.lo@s.nosp@m.tuden.nosp@m.t.do.nosp@m.cs.uu.nosp@m..se. More...
 
#define AT_CHAOS   0x00040000
 None by itself, uses random other types (262144) peter.nosp@m.m@so.nosp@m.da.be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u. More...
 
#define AT_COLD   0x00000010
 Can freeze objects into ice cubes (16) More...
 
#define AT_CONFUSION   0x00000020
 Movement/attack directions become random (32) More...
 
#define AT_COUNTERSPELL   0x00080000
 Cancels magic spells (524288) peter.nosp@m.m@so.nosp@m.da.be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u. More...
 
#define AT_DEATH   0x00020000
 Chance of instant death, otherwise nothing (131072) peter.nosp@m.m@so.nosp@m.da.be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u. More...
 
#define AT_DEPLETE   0x00010000
 Lose one point from one stat, can be restored (65536) vick@.nosp@m.bern.nosp@m..docs.nosp@m..uu..nosp@m.se. More...
 
#define AT_DISEASE   0x02000000
 33554432 disease attacktypes More...
 
#define AT_DRAIN   0x00000080
 Victim loses 2% exp, attacker gains half of that (128) More...
 
#define AT_ELECTRICITY   0x00000008
 Can also ignite objects (8) More...
 
#define AT_FEAR   0x00004000
 (16384) More...
 
#define AT_FIRE   0x00000004
 Can ignite objects (4) More...
 
#define AT_GHOSTHIT   0x00000200
 Attacker dissolves (512) More...
 
#define AT_GODPOWER   0x00100000
 Adds relevant god's attacktype (1048576) peter.nosp@m.m@so.nosp@m.da.be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u. More...
 
#define AT_HOLYWORD   0x00200000
 Damage based on race and caster's god. More...
 
#define AT_INTERNAL   0x00800000
 Only used for internal calculations. More...
 
#define AT_LIFE_STEALING   0x01000000
 16777216 for hp drain More...
 
#define AT_MAGIC   0x00000002
 All magic spells, but not prayers (2) More...
 
#define AT_PARALYZE   0x00001000
 Speed is reduced to zero (4096) More...
 
#define AT_PHYSICAL   0x00000001
 Basic attack (1) More...
 
#define AT_POISON   0x00000400
 Some damage each turn thereafter (1024) More...
 
#define AT_SLOW   0x00000800
 Speed is reduced (2048) More...
 
#define AT_TURN_UNDEAD   0x00002000
 Like Fear, but for undead only (8192) More...
 
#define AT_WEAPONMAGIC   0x00000100
 Direct damage, very special, use with care (256) More...
 

Detailed Description

Macro Definition Documentation

◆ AT_ACID

#define AT_ACID   0x00000040

Random equipped item might corrode when hit (64)

Definition at line 84 of file attack.h.

◆ AT_BLIND

#define AT_BLIND   0x00400000

Blinds victim (4194304) thoma.nosp@m.s@as.nosp@m.tro.p.nosp@m.su.e.nosp@m.du.

Definition at line 100 of file attack.h.

◆ AT_CANCELLATION

#define AT_CANCELLATION   0x00008000

Removes magic from items (32768) ylita.nosp@m.lo@s.nosp@m.tuden.nosp@m.t.do.nosp@m.cs.uu.nosp@m..se.

Definition at line 93 of file attack.h.

◆ AT_CHAOS

#define AT_CHAOS   0x00040000

None by itself, uses random other types (262144) peter.nosp@m.m@so.nosp@m.da.be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u.

Definition at line 96 of file attack.h.

◆ AT_COLD

#define AT_COLD   0x00000010

Can freeze objects into ice cubes (16)

Definition at line 82 of file attack.h.

◆ AT_CONFUSION

#define AT_CONFUSION   0x00000020

Movement/attack directions become random (32)

Definition at line 83 of file attack.h.

◆ AT_COUNTERSPELL

#define AT_COUNTERSPELL   0x00080000

Cancels magic spells (524288) peter.nosp@m.m@so.nosp@m.da.be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u.

Definition at line 97 of file attack.h.

◆ AT_DEATH

#define AT_DEATH   0x00020000

Chance of instant death, otherwise nothing (131072) peter.nosp@m.m@so.nosp@m.da.be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u.

Definition at line 95 of file attack.h.

◆ AT_DEPLETE

#define AT_DEPLETE   0x00010000

Lose one point from one stat, can be restored (65536) vick@.nosp@m.bern.nosp@m..docs.nosp@m..uu..nosp@m.se.

Definition at line 94 of file attack.h.

◆ AT_DISEASE

#define AT_DISEASE   0x02000000

33554432 disease attacktypes

Definition at line 104 of file attack.h.

◆ AT_DRAIN

#define AT_DRAIN   0x00000080

Victim loses 2% exp, attacker gains half of that (128)

Definition at line 85 of file attack.h.

◆ AT_ELECTRICITY

#define AT_ELECTRICITY   0x00000008

Can also ignite objects (8)

Definition at line 81 of file attack.h.

◆ AT_FEAR

#define AT_FEAR   0x00004000

(16384)

Definition at line 92 of file attack.h.

◆ AT_FIRE

#define AT_FIRE   0x00000004

Can ignite objects (4)

Definition at line 80 of file attack.h.

◆ AT_GHOSTHIT

#define AT_GHOSTHIT   0x00000200

Attacker dissolves (512)

Definition at line 87 of file attack.h.

◆ AT_GODPOWER

#define AT_GODPOWER   0x00100000

Adds relevant god's attacktype (1048576) peter.nosp@m.m@so.nosp@m.da.be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u.

Definition at line 98 of file attack.h.

◆ AT_HOLYWORD

#define AT_HOLYWORD   0x00200000

Damage based on race and caster's god.

Enemies: X5, Undead: X1, others: none (2097152) thoma.nosp@m.s@as.nosp@m.tro.p.nosp@m.su.e.nosp@m.du

Definition at line 99 of file attack.h.

◆ AT_INTERNAL

#define AT_INTERNAL   0x00800000

Only used for internal calculations.

Definition at line 101 of file attack.h.

◆ AT_LIFE_STEALING

#define AT_LIFE_STEALING   0x01000000

16777216 for hp drain

Definition at line 102 of file attack.h.

◆ AT_MAGIC

#define AT_MAGIC   0x00000002

All magic spells, but not prayers (2)

Definition at line 79 of file attack.h.

◆ AT_PARALYZE

#define AT_PARALYZE   0x00001000

Speed is reduced to zero (4096)

Definition at line 90 of file attack.h.

◆ AT_PHYSICAL

#define AT_PHYSICAL   0x00000001

Basic attack (1)

Definition at line 78 of file attack.h.

◆ AT_POISON

#define AT_POISON   0x00000400

Some damage each turn thereafter (1024)

Definition at line 88 of file attack.h.

◆ AT_SLOW

#define AT_SLOW   0x00000800

Speed is reduced (2048)

Definition at line 89 of file attack.h.

◆ AT_TURN_UNDEAD

#define AT_TURN_UNDEAD   0x00002000

Like Fear, but for undead only (8192)

Definition at line 91 of file attack.h.

◆ AT_WEAPONMAGIC

#define AT_WEAPONMAGIC   0x00000100

Direct damage, very special, use with care (256)

Definition at line 86 of file attack.h.