minor stuff
This commit is contained in:
parent
8e074bdb98
commit
9e56ba1fcc
|
@ -46,6 +46,20 @@ class CmdMeow(Command):
|
||||||
self.caller.msg(f"You meowed at {target.key}!")
|
self.caller.msg(f"You meowed at {target.key}!")
|
||||||
target.msg(f"You got meowed at by {self.caller.key}!")
|
target.msg(f"You got meowed at by {self.caller.key}!")
|
||||||
|
|
||||||
|
class CmdBark(Command):
|
||||||
|
|
||||||
|
key = 'bark'
|
||||||
|
|
||||||
|
def func(self):
|
||||||
|
args = self.args.strip()
|
||||||
|
if not args:
|
||||||
|
self.caller.msg("Who or what would you like to bark at?")
|
||||||
|
return
|
||||||
|
target = self.caller.search(args)
|
||||||
|
if not target:
|
||||||
|
return
|
||||||
|
self.caller.msg(f"You barked at {target.key}!")
|
||||||
|
target.msg(f"You got barked at by {self.caller.key}!")
|
||||||
|
|
||||||
|
|
||||||
# -------------------------------------------------------------
|
# -------------------------------------------------------------
|
||||||
|
|
|
@ -12,4 +12,4 @@ class SetSpeciesCatkin(CmdSet):
|
||||||
|
|
||||||
class SetSpeciesDogkin(CmdSet):
|
class SetSpeciesDogkin(CmdSet):
|
||||||
def at_cmdset_creation(self):
|
def at_cmdset_creation(self):
|
||||||
self.add(cmd.CmdMeow())
|
self.add(cmd.CmdBark())
|
||||||
|
|
|
@ -182,6 +182,8 @@ class SetEncounterSpecial(CmdSet):
|
||||||
self.add(CmdFlee)
|
self.add(CmdFlee)
|
||||||
self.add(CmdOOC)
|
self.add(CmdOOC)
|
||||||
self.add(CmdPose)
|
self.add(CmdPose)
|
||||||
|
self.add(CmdKiss)
|
||||||
|
self.add(CmdBite)
|
||||||
|
|
||||||
# Encounter-related character commands
|
# Encounter-related character commands
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ class Character(ClothedCharacter):
|
||||||
self.cmdset.add(SPECIES_CMDSET[self.db.species])
|
self.cmdset.add(SPECIES_CMDSET[self.db.species])
|
||||||
|
|
||||||
def revoke_encounter_cmdset(self):
|
def revoke_encounter_cmdset(self):
|
||||||
self.cmdset.remove(SPECIES_CMDSET[self.db.species])
|
# self.cmdset.remove(SPECIES_CMDSET[self.db.species])
|
||||||
self.cmdset.remove(SetEncounterSpecial)
|
self.cmdset.remove(SetEncounterSpecial)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
@ -15,5 +15,5 @@ SPECIES_LIST = [
|
||||||
SPECIES_CMDSET = [
|
SPECIES_CMDSET = [
|
||||||
SetSpeciesHuman,
|
SetSpeciesHuman,
|
||||||
SetSpeciesCatkin,
|
SetSpeciesCatkin,
|
||||||
SetSpeciesDogkin
|
SetSpeciesDogkin,
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue