From 043a27f18bf842b4dd0de0d9f4ec0a6b13e761b7 Mon Sep 17 00:00:00 2001
From: Peter Varaksin
Date: Wed, 6 May 2020 11:15:15 +0300
Subject: [PATCH] GH-12 Add Item description
- Closes #12
- Adds items description
---
packs/items.db | 33 +++++++++++++++++----------------
template.json | 2 +-
templates/items/item.html | 2 +-
3 files changed, 19 insertions(+), 18 deletions(-)
diff --git a/packs/items.db b/packs/items.db
index 98522e0..c05e772 100644
--- a/packs/items.db
+++ b/packs/items.db
@@ -1,16 +1,17 @@
-{"_id":"05ZtdYxXWEPmLlxH","name":"Demolition Tools","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"2","description":"","items":[]},"sort":1400000,"flags":{}}
-{"_id":"8kgtZo4ddpRAJH7l","name":"+ Heavy","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"3","description":"","items":[]},"sort":800000,"flags":{}}
-{"_id":"9BztJARntO1uFSYY","name":"Throwing Knives","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"1","description":"","items":[]},"sort":200000,"flags":{}}
-{"_id":"K9onsW8mnJiFrWAZ","name":"A Blade or Two","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"1","description":"","items":[]},"sort":100000,"flags":{}}
-{"_id":"MOZAojcYM92lrDcK","name":"A Large Weapon","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"2","description":"","items":[]},"sort":500000,"flags":{}}
-{"_id":"OEspgCofoCwHOcm9","name":"An Unusual Weapon","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"1","description":"","items":[]},"sort":600000,"flags":{}}
-{"_id":"RM4Qs7KnUDUWXOiz","name":"Subterfuge Supplies","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"1","description":"","items":[]},"sort":1300000,"flags":{}}
-{"_id":"SaRZapoF6ja5s7Qo","name":"Lantern","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"1","description":"","items":[]},"sort":1600000,"flags":{}}
-{"_id":"YLPAWyYPQZuuHL18","name":"Arcane Implements","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"1","description":"","items":[]},"sort":1100000,"flags":{}}
-{"_id":"cIa0ZZUXpOcqPtKy","name":"Climbing Gear","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"2","description":"","items":[]},"sort":1000000,"flags":{}}
-{"_id":"gCFkqHGH9KGiGcGn","name":"Burglary Gear","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"1","description":"","items":[]},"sort":900000,"flags":{}}
-{"_id":"iUytqBYn6e0slC75","name":"A Pistol","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"1","description":"","items":[]},"sort":300000,"flags":{}}
-{"_id":"ukmU5W2Ya9EJr4J0","name":"Armor","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"2","description":"","items":[]},"sort":700000,"flags":{}}
-{"_id":"vLpzNwzhGlBfxw2v","name":"Documents","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"1","description":"","items":[]},"sort":1200000,"flags":{}}
-{"_id":"y1tNdNOesmsYbJkv","name":"Tinkering Tools","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"1","description":"","items":[]},"sort":1500000,"flags":{}}
-{"_id":"y9WkdMK6v8GxweL5","name":"A 2nd Pistol","permission":{"default":0},"type":"item","data":{"class_restriction":"","load":"1","description":"","items":[]},"sort":400000,"flags":{}}
+{"_id":"05ZtdYxXWEPmLlxH","name":"Demolition Tools","permission":{"default":0},"type":"item","data":{"class":"","load":"2","description":"A sledgehammer and iron spikes. Heavy drill. Crowbar."},"sort":1400000,"flags":{}}
+{"_id":"8kgtZo4ddpRAJH7l","name":"+ Heavy","permission":{"default":0},"type":"item","data":{"class":"","load":"3","description":"The addition of chain mail, metal plates, a metal helm."},"sort":800000,"flags":{}}
+{"_id":"9BztJARntO1uFSYY","name":"Throwing Knives","permission":{"default":0},"type":"item","data":{"class":"","load":"1","description":"Six small, light blades."},"sort":200000,"flags":{}}
+{"_id":"K9onsW8mnJiFrWAZ","name":"A Blade or Two","permission":{"default":0},"type":"item","data":{"class":"","load":"1","description":"Perhaps you carry a simple fighting knife. Or two curved swords. Or a rapier and stiletto. Or a heavy butcher’s cleaver."},"sort":100000,"flags":{}}
+{"_id":"MOZAojcYM92lrDcK","name":"A Large Weapon","permission":{"default":0},"type":"item","data":{"class":"","load":"2","description":"A weapon meant for two hands. A battle-axe, greatsword, warhammer, or pole-arm. A hunting rifle. A blunderbuss. A bow or crossbow."},"sort":500000,"flags":{}}
+{"_id":"OEspgCofoCwHOcm9","name":"An Unusual Weapon","permission":{"default":0},"type":"item","data":{"class":"","load":"1","description":"A curiosity or tool turned into a weapon. A whip, a flail, a hatchet, a shovel, a length of chain, a razor-edged fan, steel-toed boots."},"sort":600000,"flags":{}}
+{"_id":"RM4Qs7KnUDUWXOiz","name":"Subterfuge Supplies","permission":{"default":0},"type":"item","data":{"class":"","load":"1","description":"A theatrical make-up kit. A selection of blank documents, ready for the forger’s hand. Costume jewelry. A reversible cloak and distinctive hat. A forged badge of office."},"sort":1300000,"flags":{}}
+{"_id":"SaRZapoF6ja5s7Qo","name":"Lantern","permission":{"default":0},"type":"item","data":{"class":"","load":"1","description":"A simple oil lantern, a fancy electroplasmic lamp, or other light source."},"sort":1600000,"flags":{}}
+{"_id":"YLPAWyYPQZuuHL18","name":"Arcane Implements","permission":{"default":0},"type":"item","data":{"class":"","load":"1","description":"A vial of quicksilver. A pouch of black salt. A spirit anchor in the form of a small stone. A spirit bottle. A vial of electroplasm, designed to break and splatter on impact."},"sort":1100000,"flags":{}}
+{"_id":"cIa0ZZUXpOcqPtKy","name":"Climbing Gear","permission":{"default":0},"type":"item","data":{"class":"","load":"2","description":"A large coil of rope. A small coil of rope. Grappling hooks. A small pouch of chalk dust. A climbing harness with loops and metal rings. A set of iron pitons and a small mallet."},"sort":1000000,"flags":{}}
+{"_id":"gCFkqHGH9KGiGcGn","name":"Burglary Gear","permission":{"default":0},"type":"item","data":{"class":"","load":"1","description":"A set of lockpicks. A small pry-bar. Vials of oil to silence squeaky hinges. A coil of wire and fishing hooks. A small pouch of fine sand."},"sort":900000,"flags":{}}
+{"_id":"iUytqBYn6e0slC75","name":"A Pistol","permission":{"default":0},"type":"item","data":{"class":"","load":"1","description":"A heavy, single-shot, breech-loading firearm. Devastating at 20 paces, slow to reload."},"sort":300000,"flags":{}}
+{"_id":"ukmU5W2Ya9EJr4J0","name":"Armor","permission":{"default":0},"type":"item","data":{"class":"","load":"2","description":"A thick leather tunic plus reinforced gloves and boots."},"sort":700000,"flags":{}}
+{"_id":"vLpzNwzhGlBfxw2v","name":"Documents","permission":{"default":0},"type":"item","data":{"class":"","load":"1","description":"A collection of slim volumes on a variety of topics, including a registry of the nobility, City Watch commanders, and other notable citizens. Blank pages, a vial of ink, a pen. A number of interesting maps."},"sort":1200000,"flags":{}}
+{"_id":"y1tNdNOesmsYbJkv","name":"Tinkering Tools","permission":{"default":0},"type":"item","data":{"class":"","load":"1","description":"An assortment for detailed mechanist work: jeweler’s loupe, tweezers, a small hammer, pliers, screwdriver, etc."},"sort":1500000,"flags":{}}
+{"_id":"y9WkdMK6v8GxweL5","name":"A 2nd Pistol","permission":{"default":0},"type":"item","data":{"class":"","load":"1","description":"A heavy, single-shot, breech-loading firearm. Devastating at 20 paces, slow to reload."},"sort":400000,"flags":{}}
+{"_id":"DVvua5rp9ldL5JZh","name":"Spiritbane Charm","permission":{"default":0,"BwbqQh8sHfeKmUax":3},"type":"item","data":{"description":"A small arcane trinket that ghosts prefer to avoid.","class":"","load":"0"},"folder":null,"sort":100001,"flags":{}}
diff --git a/template.json b/template.json
index 6d0b7c4..41058e4 100644
--- a/template.json
+++ b/template.json
@@ -102,7 +102,7 @@
},
"item": {
"templates": ["default"],
- "class_restriction": "",
+ "class": "",
"load": 0
},
"class": {
diff --git a/templates/items/item.html b/templates/items/item.html
index 1800922..30e2ad2 100644
--- a/templates/items/item.html
+++ b/templates/items/item.html
@@ -12,6 +12,6 @@
-
+