示例#1
0
 def perform(self, char: Character, state: State):
     item = state.getItem(self.itemShort)
     char.copyAndGiveItem(item)
     return f"gave item: {item}"
示例#2
0
 def perform(self, char: Character, state: State):
     item = state.getItem(self.itemShort)
     char.takeItem(item)
     return f"consumed item: {item}"