Closed takluyver closed 11 years ago
This looks great. Should we also have a function like decompose() for some item that could be decomposed?
Do you have any examples in mind?
Maybe we can decompose(or split) a broken sword and get the gem on it. Like: In weatbat.items.sword.py:
def decompose():
return "gem"
Then in some tile:
...
if do[0] == "decompose" and do[1] == "sword":
if player.has("sword"):
result = decompose("sword")
if result:
player.take("sword")
player.give(result)
Let's leave that up to tiles to implement individually for now. We can always add it to items later if we decide there's a need for it.
OK.
Great. In it goes.
Allows items to be combined to make new items.