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

fight.py
 
Provide functions for fight PvE and PvP

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

 
Classes
       
FightData

 
class FightData
    Data for fight.
 
  Methods defined here:
__init__(self, set=None)
Standard class constructor.
copy(self)
copyTo(self, to)
store(self)

 
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.
cmd_shoot(ch, cmd, arg)
Usage strzel <cel>
 
Shoot from ranged weapon to selected target.
do_fight(ch, vict, attackType='normal')
Function start fight with mobs.
end_fight_hook(info)
When player move from room, end fight - unblock player and mobiles.
gain_exp(ch, expgain)
Gain experience by attacker(s).
get_info(ch, vict, attackType)
Function return battle informations about selected character.
get_party(fighter)
Return list with members of fighter party which doing this same fight.
shoot_attack(ch)
Manipulate attacker weapon and ammunition (ranged attacks).
throw_attack(attacker, defender)
Manipulate attacker weapon (throw attacks).