Beispiel #1
0
 async def execute(self,game:MUD, player:MPlayer):
     player.add_temp_condition(mud.Condition.RESTRAINED,self.speed+2)
     player.special_desc="%s is being scanned." % player.mname
     await self.notify(player,"is scanning themselves.")
     await asyncio.sleep(self.speed)
     if not player.dead:
         await self.notify(player,"is an Impostor!" if player.role.name=="Impostor" else "is not an impostor.")
         player.conditions.append(mud.Condition.SCANNED)
         player.special_desc=""
Beispiel #2
0
 async def execute(self,game:MUD, player:MPlayer):
     self.target.add_temp_condition(mud.Condition.RESTRAINED,self.speed+2)
     player.special_desc="%s is trying to eat %s." % (player.mname,self.target.mname)
     await self.notify(player, "is trying to eat %s!" % self.target.mname)
     await asyncio.sleep(self.speed)
     if not player.immobile:
         await game.kill(self.target, "eaten by an imposter", False)
         await player.dm("You successfully ate %s!" % self.target.mname)
         await self.notify(player, "ate %s!" % self.target.mname)
         player.special_desc=""
     else:
         await player.dm("Your feeding was interrupted...")
Beispiel #3
0
 async def execute(self,game:MUD, player:MPlayer):
     player.conditions.append(mud.Condition.DRUGGED)
     player.conditions.append(mud.Condition.STUNNED)
     await self.notify(player,"took some drugs.")
     await player.dm("Wow, these drugs are stronger than you thought! You black out...")
     player.special_desc="%s is drugged out on the floor." % player.mname