(TO BE REVISED) Items

Items - Draft

Buying Items

Players can buy special items from the market. Probably trading has a price list an can issue items itself. Option 1: Trading owns items

  • Trading has a list of items
  • Players can use funds to buy items
    • Items are saved inside of trading?
    • Items are saved inside of player?
    • Items are saved in a new service (Item Service)?

Using Items

Players can use special items. The core problem: Depending on functionality, the item must be implemented in the respective service. e.g:

  • If the item is a weapon / shield, it must be implemented in the robot service.
  • If the item is a mining tool, it must be implemented in the mining(planet) service.

Basic event flow:

  1. Player uses item
  2. Item service sends event “item type x used”
  3. Robot/World service receives event and executes action