mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 04:57:16 +02:00
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:
|
||||
ostring = "%s falls to the ground!" % target.key
|
||||
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:
|
||||
# no players found, this could mean they have fled. Switch to pursue mode.
|
||||
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
|
||||
send_code = "from src.comms.imc2 import IMC2_CLIENT\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,
|
||||
db_external_config=config)
|
||||
conn.save()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue