Items.json

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

Jump to: navigation, search

Overview

Currently there are 3 types you can create in Halfway. (One is ammo and currently static and can't be changed)

  • Ammo
    • This is currently static and can not be changed.
  • Grenades
    • You can edit them and create new ones for the player or the enemies.
  • Usable Items
    • This type of item has alot of sub items you can use and combine if you like, creating all new items for the player.

Most of the points in the Items json should be self explaining. Just copy over the settings and changed them as you like.

Item types

Grenades

Grenades deal splash damage to the enemies in its radius. The radius is 3 tiles wide and the damage falls with the distance from the center.

In the center the base damage set in this json is dealt (minus armor etc) You can set for each new tileradius damage individually:

     "baseDamage" : 15,
     "maxThrowingDistance" : 10,
     "centreDamageFactor" : 1,
     "firstRowDamageFactor" : 0.6,
     "secondRowDamageFactor" : 0.3,

You can also change the maximum reach for the grenade here. The explosion effect is defined with the: "projectileType" : "plasmaGrenade001", where as the plasmaGrenade001.png with out the png is used. You find this effect in the ./gfx/specialFX folder.

Note:You can not change the radius of the splash damage at the moment.

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.