Item update#157
Conversation
Fix Triple pair (Crystalwarrior#147)
Update master
There was a problem hiding this comment.
I feel like in its current form the items can only fulfill 1 specific narrow purpose and nothing else. This design is super rigid and would also be annoying to overhaul long-term.
Let's start splitting things up into a more flexible design and start using classes
| self.current_client = client | ||
| self.guild = None | ||
| self.moves = [ClientManager.Move(move) for move in fighter["Moves"]] | ||
| self.bag = [] |
There was a problem hiding this comment.
I think inventory is more descriptive
| client.send_ooc("Item not found in your bag") | ||
| return | ||
| item = client.area.battle_items[arg] | ||
| if item["stat"] == "hp": |
There was a problem hiding this comment.
why can an item can only modify a single stat?
What about items that trade your HP for Mana? Increase attack but reduce defense?
| client.area.battle_items[f"{args[0]}"] = {} | ||
| client.area.battle_items[f"{args[0]}"]["stat"] = args[1].lower() | ||
| client.area.battle_items[f"{args[0]}"]["operation"] = args[2][0] | ||
| client.area.battle_items[f"{args[0]}"]["number"] = num | ||
| client.send_ooc(f"{args[0]} has been created!") |
There was a problem hiding this comment.
This is a nightmare, please start using classes
| effect="statup", | ||
| ) | ||
| client.battle.bag.remove(arg) | ||
| send_stats_fighter(client) |
There was a problem hiding this comment.
Is there no way to set for how long is a stat modified? Status effect system also seems to be hard-coded to moves only.
No description provided.