Items.json

From Halfway
Revision as of 10:21, 19 September 2014 by Seminus (Talk | contribs)

Jump to: navigation, search

Overview

Item types

  • Grenades
  • Usable Items
    • Medkit
    • Shieldrecharge
    • Temp Stimpack
    • Perma Stims

Attributes

Perma Stims
  • Health
  • Aming
  • Agility
Temp Stims
  • ActionPoints
  • Aiming
  • Health
  • Agility
Usable Items
  • CurrentShield
  • CurrentHealth

Examples

Grenades

   {
     "class" : "Grenade",
     "itemId" : "grenade01",
     "itemType" : "Grenade",
     "ownership" : "Player",
     "name" : "Plasma Grenade MK-I",
     "shortName" : "Gren MK-I",
     "description" : "The G.S.A. plasma grenade was specifically developed for effective use on spaceships. Small explosion radius but highly concetrated heat damage.",
     "iconId" : "grenade",
     "consumable" : true,
     "projectileType" : "plasmaGrenade001",
     "baseDamage" : 15,
     "maxThrowingDistance" : 10,
     "centreDamageFactor" : 1,
     "firstRowDamageFactor" : 0.6,
     "secondRowDamageFactor" : 0.3,
     "buyValue" : 250,
     "sellValue" : 30
   },

Medkit

   {
     "class" : "UsableItem",
     "itemId" : "medkit01",
     "itemType" : "Item",
     "itemSoundId" : "Medkit",
     "name" : "Medkit Small",
     "shortName" : "Meds",
     "description" : "Small medkit for treating minor wounds. Restores 5 HP. ",
     "iconId" : "medkit",
     "consumable" : true,
     "buyValue" : 49,
     "sellValue" : 5,
     "attributes" : [
       {
         "class" : "StatChangeAttribute",
         "attributeChanges" : [
           {
             "attribute" : "CurrentHealth",
             "amount" : 5
           }
         ]
       }
     ]
   },


ShieldBooster

   {
     "class" : "UsableItem",
     "itemId" : "shieldBoost01",
     "itemSoundId" : "ShieldRecharge",
     "itemType" : "Item",
     "name" : "Shield Cell Small",
     "shortName" : "Shield",
     "description" : "A small energy cell for immediately recharging suit shields. Restores 5 shield points.",
     "iconId" : "shieldRecharge",
     "consumable" : true,
     "buyValue" : 49,
     "sellValue" : 5,
     "attributes" : [
       {
         "class" : "StatChangeAttribute",
         "attributeChanges" : [
           {
             "attribute" : "CurrentShield",
             "amount" : 5
           }
         ]
       }
     ]
   },

Temp Stim

   {
     "class" : "UsableItem",
     "itemId" : "stimpackHealth01",
     "itemSoundId" : "Stimpack",
     "itemType" : "Item",
     "name" : "Health Stimpack MK-I",
     "shortName" : "Stim",
     "description" : "Increases health by 1 point for 3 turns. Produced and consumed mainly by B-Class citizens, this stimpack variant uses cheaper ingredients and is not as effective as other more saught after versions.",
     "iconId" : "stimpack",
     "consumable" : true,
     "buyValue" : 60,
     "sellValue" : 5,
     "attributes" : [
       {
         "class" : "StimPackAttribute",
         "initialBuffs" : [
           {
             "attribute" : "Health",
             "amount" : 1,
             "duration" : 3
           }
         ],
         "onExpireBuffs" : [
           {
             "attribute" : "Health",
             "amount" : -1,
             "duration" : 2
           }
         ]
       }
     ]
   },


Perma Stim/Level up Stim

   {
     "class" : "UsableItem",
     "itemId" : "aimingStim01",
     "itemSoundId" : "Stimpack",
     "itemType" : "Stimpack",
     "name" : "Aiming Stimpack",
     "shortName" : "Stim",
     "description" : "Standard G.S.A. Aiming Stimpack. This stim permanently increases aiming by 1.",
     "iconId" : "stimpack",
     "consumable" : true,
     "buyValue" : 600,
     "sellValue" : 60,
     "attributes" : [
       {
         "class" : "StatChangeAttribute",
         "attributeChanges" : [
           {
             "attribute" : "Aiming",
             "amount" : 1
           }
         ]
       }
     ]
   },


Known Issue

  • Ammunition can't be edited yet. It is part of the source code.