Items should have a fractional durability. When and item takes damage, its durability is lowered according to some game rule. I want the implementation of the durability to be common to all items, be them weapons, armor, boogers or whatever. It might be that some items cannot be damaged, but that is acceptable.
This ticket does not represent making them take damage. Only that is modeled, and the objects react accordingly.
This implies doing something about the WeaponItem and ArmorItem classes, unless we are going to start a big class hierarchy of inherited classes, it might be better go with a factory approach and simpler common implementation of Item, constructed via factory only.
Items should have a fractional durability. When and item takes damage, its durability is lowered according to some game rule. I want the implementation of the durability to be common to all items, be them weapons, armor, boogers or whatever. It might be that some items cannot be damaged, but that is acceptable.
This ticket does not represent making them take damage. Only that is modeled, and the objects react accordingly.
This implies doing something about the WeaponItem and ArmorItem classes, unless we are going to start a big class hierarchy of inherited classes, it might be better go with a factory approach and simpler common implementation of Item, constructed via factory only.
17 is ticket for actuating the damage mechanics.