Fixed a bug in IMC2 implementation. Made sure the Tutorial world Ghost keeps moving after winning a battle.
This commit is contained in:
parent
e0ba7695a5
commit
f0fa6b5aee
2 changed files with 5 additions and 1 deletions
|
|
@ -241,6 +241,10 @@ class Enemy(Mob):
|
||||||
elif not ostring:
|
elif not ostring:
|
||||||
ostring = "%s falls to the ground!" % target.key
|
ostring = "%s falls to the ground!" % target.key
|
||||||
self.location.msg_contents(ostring, exclude=[target])
|
self.location.msg_contents(ostring, exclude=[target])
|
||||||
|
# Pursue any stragglers after the battle
|
||||||
|
self.battle_mode = False
|
||||||
|
self.roam_mode = False
|
||||||
|
self.pursue_mode = True
|
||||||
else:
|
else:
|
||||||
# no players found, this could mean they have fled. Switch to pursue mode.
|
# no players found, this could mean they have fled. Switch to pursue mode.
|
||||||
self.battle_mode = False
|
self.battle_mode = False
|
||||||
|
|
|
||||||
|
|
@ -434,7 +434,7 @@ def create_connection(channel, imc2_channel):
|
||||||
# how the evennia channel will be able to contact this protocol in reverse
|
# how the evennia channel will be able to contact this protocol in reverse
|
||||||
send_code = "from src.comms.imc2 import IMC2_CLIENT\n"
|
send_code = "from src.comms.imc2 import IMC2_CLIENT\n"
|
||||||
send_code += "data={'channel':from_channel}\n"
|
send_code += "data={'channel':from_channel}\n"
|
||||||
send_code += "IMC2_CLIENT.msg_imc2(message, from_obj=from_obj, data=data)\n"
|
send_code += "IMC2_CLIENT.msg_imc2(message, senders=[self])\n"
|
||||||
conn = ExternalChannelConnection(db_channel=channel, db_external_key=key, db_external_send_code=send_code,
|
conn = ExternalChannelConnection(db_channel=channel, db_external_key=key, db_external_send_code=send_code,
|
||||||
db_external_config=config)
|
db_external_config=config)
|
||||||
conn.save()
|
conn.save()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue