DigitalLibrarian / VS2013Projects

DF/CDDA inspired content driven simulator
1 stars 0 forks source link

Item Durability #20

Open DigitalLibrarian opened 8 years ago

DigitalLibrarian commented 8 years ago

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.