HKiOnline / swlib

Star Wars Games Data Library
0 stars 0 forks source link

Create item data structure #4

Open HKiOnline opened 2 years ago

HKiOnline commented 2 years ago

Star Wars RPG items such as weapons, armor, equipment and item qualities need a data structure. Let's create one.

HKiOnline commented 2 years ago

Maybe we could use this as structure for weapons and extrapolate that to items.

{
    "name": "Lightsaber pike",
    "type": "Lightsaber",
    "category": "Weapon",
    "skill": "Lightsaber",
    "damage": 6,
    "critical": 2,
    "range": "Engaged",
    "encumbrance": 3,
    "hardpoints": 3,
    "price": 9600,
    "rarity": 10,
    "special": [
      "Breach 1", "Cumbersome 3", "Defensive 1", "Sunder"
    ],
    "sources": ["FaD.177"],
    "attachments": []
}

Looking at that leads to us probably also having listings of item categories and types (subtypes?). In addition we'll need item qualities and attachments lists.