Cleanup
This commit is contained in:
parent
3f05a05a3c
commit
6a4209a84e
2 changed files with 5 additions and 5 deletions
|
|
@ -902,7 +902,7 @@ than the lonely cries of the cold, salty wind.
|
||||||
|
|
||||||
# give the enemy a tentacle weapon
|
# give the enemy a tentacle weapon
|
||||||
#
|
#
|
||||||
@create foggy tentacles;tentacles:tutorial_world.objects.Weapon
|
@create foggy tentacles;tentacles:tutorial_world.objects.TutorialWeapon
|
||||||
#
|
#
|
||||||
# Make the enemy's weapon good - hits at 70% of attacks, but not good at parrying.
|
# Make the enemy's weapon good - hits at 70% of attacks, but not good at parrying.
|
||||||
#
|
#
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ class Mob(tut_objects.TutorialObject):
|
||||||
stationary (idling) until attacked.
|
stationary (idling) until attacked.
|
||||||
aggressive: if set, will attack Characters in
|
aggressive: if set, will attack Characters in
|
||||||
the same room using whatever Weapon it
|
the same room using whatever Weapon it
|
||||||
carries (see tutorial_world.objects.Weapon).
|
carries (see tutorial_world.objects.TutorialWeapon).
|
||||||
if unset, the mob will never engage in combat
|
if unset, the mob will never engage in combat
|
||||||
no matter what.
|
no matter what.
|
||||||
hunting: if set, the mob will pursue enemies trying
|
hunting: if set, the mob will pursue enemies trying
|
||||||
|
|
@ -168,9 +168,9 @@ class Mob(tut_objects.TutorialObject):
|
||||||
be "ticked".
|
be "ticked".
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
interval (int): The number of seconds
|
interval (int or None): The number of seconds
|
||||||
between ticks
|
between ticks
|
||||||
hook_key (str): The name of the method
|
hook_key (str or None): The name of the method
|
||||||
(on this mob) to call every interval
|
(on this mob) to call every interval
|
||||||
seconds.
|
seconds.
|
||||||
stop (bool, optional): Just stop the
|
stop (bool, optional): Just stop the
|
||||||
|
|
@ -372,7 +372,7 @@ class Mob(tut_objects.TutorialObject):
|
||||||
return
|
return
|
||||||
|
|
||||||
# we use the same attack commands as defined in
|
# we use the same attack commands as defined in
|
||||||
# tutorial_world.objects.Weapon, assuming that
|
# tutorial_world.objects.TutorialWeapon, assuming that
|
||||||
# the mob is given a Weapon to attack with.
|
# the mob is given a Weapon to attack with.
|
||||||
attack_cmd = random.choice(("thrust", "pierce", "stab", "slash", "chop"))
|
attack_cmd = random.choice(("thrust", "pierce", "stab", "slash", "chop"))
|
||||||
self.execute_cmd("%s %s" % (attack_cmd, target))
|
self.execute_cmd("%s %s" % (attack_cmd, target))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue