Item lifetimes

Started by Darmius, Mar 11, 2010, 11:01 AM

Previous topic - Next topic

Darmius

Add two fields to the items DB
LifetimeCounter = double
LifetimeNotIgnored = bool


  • Every hour a thread is spawned and crawls every active item in the game (low pri).  The counter is decremented by 1.  At 0 the item is removed from the game
  • Items in player inventories are safe.  Except those that have the NotIgnored flag set.  Items like this could be beholder eye, quest items.  Thing that people shouldn't be able to stockpile
  • Gang house could reduce the effect of the decrement by some value.  This would slow degradation but would stop hoarding.
  • There is no need for remove@maintenance and would provide a more dynamic item cleaning system
  • Applies to money also

DeathCow

Since we are on the subject, we could have a degrades to ability.  It would be placed after the LifetimeCounter, and items with this ability would become another item when their lifetime is over.


Darmius

I like that.  A glowing broadsword could become a broadsword after 500 hours.  It would open the way for enchantments/spells on items.