fight
index
/home/thindil/Projekty/anaria/server/lib/pymodules/fight.py

fight.py
 
Provide functions for fight PvE and PvP

 
Modules
       
char
damage
event
gainlevel
hooks
mud
mudsock
mudsys
obj
random
utils

 
Functions
       
__unload__()
removes the hooks for fight
attack_event(owner, data, attackType)
Function made attack and count damage.
cmd_appraise(ch, cmd, arg)
Command appraise stats of selected player/mob.
cmd_challenge(ch, cmd, arg)
Command challenge other player to duel.
cmd_kill(ch, cmd, arg)
Command start fight.
do_fight(ch, vict)
Function start fight with mobs.
end_fight_hook(info)
When player move from room, end fight - unblock player and mobiles.
get_info(ch)
Function return battle informations about selected character.