A lot, i dont rembr
This commit is contained in:
parent
fdd58af63e
commit
82565a2be9
6 changed files with 547 additions and 45 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// Now holds only variables
|
||||
|
||||
// Player Currency
|
||||
global.prewarmoney = 0; // Used with enclave vendors
|
||||
global.preWarMoney = 0; // Used with enclave vendors
|
||||
global.caps = 0; // Used with all other vendors
|
||||
|
||||
// Player Stats
|
||||
|
|
@ -36,12 +36,32 @@ global.daysSinceScav = 0; // Days since player last scavenged. Must be >= 15 to
|
|||
|
||||
global.name = "placeholder"; // Player name, changed when the game starts
|
||||
|
||||
export function variableChange(variable, operation, value) {
|
||||
switch(operation) {
|
||||
case "%": global[variable] = global[variable] % value
|
||||
case "+": global[variable] = global[variable] + value
|
||||
case "-": global[variable] = global[variable] - value
|
||||
case "/": global[variable] = global[variable] / value
|
||||
case "=": global[variable] = value
|
||||
}
|
||||
}
|
||||
global.supplyList = [ // Supplies: chems, aid
|
||||
{name: "Food", description: "Misc foods", cost: 1, weight: 0},
|
||||
{name: "Stimpak", description: "A Stimpak syringe, heals 25 HP", cost: 5, weight: 0.5},
|
||||
{name: "RadAway", description: "A pack of RadAway, removes 20 rad-points", cost: 5, weight: 0.5},
|
||||
{name: "RadX", description: "A bottle of RadX, removes 1 rad-severity", cost: 5, weight: 0.5},
|
||||
{name: "Med-x", description: "A vial of Med-X, reduces damage by 15% for 1 fight", cost: 10, weight: 0.5},
|
||||
{name: "Psycho", description: "A vial of Psycho, boosts damage by 15% for 1 fight", cost: 10, weight: 0.5}
|
||||
];
|
||||
global.equipmentList = [ // Equipment: weapons, armor, tools
|
||||
// Type: The type of item it is, weapon, armor, or tool
|
||||
// Value: The value of the item, used for damage, dr, or dt
|
||||
// Unit: The unit of the item, slash, bash, balistic, laser, plasma, damage resistance or damage threshold (PA only)
|
||||
{name: "Combat Knife", description: "A combat knife, does 5 slash damage", type: "weapon", value: "5", unit: "slash", cost: 5, weight: 1},
|
||||
{name: "Baseball Bat", description: "A baseball bat, does 5 bash damage", type: "weapon", value: "5", unit: "bash", cost: 5, weight: 2},
|
||||
{name: "10mm Pistol", description: "A 10mm pistol, does 10 balistic damage", type: "weapon", value: "10", unit: "balistic",cost: 10, weight: 2},
|
||||
{name: "Hunting Rifle", description: "A hunting rifle, does 15 balistic damage", type: "weapon", value: "15", unit: "balistic",cost: 15, weight: 3},
|
||||
{name: "Laser Pistol", description: "A laser pistol, does 20 laser damage", type: "weapon", value: "20", unit: "laser",cost: 20, weight: 4},
|
||||
{name: "Laser Rifle", description: "A laser rifle, does 25 laser damage", type: "weapon", value: "25", unit: "laser",cost: 25, weight: 5},
|
||||
{name: "Plasma Pistol", description: "A plasma pistol, does 30 plasma damage", type: "weapon", value: "30", unit: "plasma",cost: 30, weight: 6},
|
||||
{name: "Plasma Rifle", description: "A plasma rifle, does 35 plasma damage", type: "weapon", value: "35", unit: "plasma",cost: 35, weight: 7},
|
||||
{name: "Leather Armor", description: "A set of leather armor, slightly used", type: "armor", value: "5", unit: "dr",cost: 5, weight: 5},
|
||||
{name: "Metal Armor", description: "A set of metal armor, dented in many places", type: "armor", value: "5", unit: "dr",cost: 10, weight: 10},
|
||||
{name: "Combat Armor", description: "A set of combat armor, in good condition", type: "armor", value: "5", unit: "dr",cost: 15, weight: 15},
|
||||
{name: "Recon Under Armor", description: "A set of recon armor, for use in Power Armor", type: "uarmor", value: "5", unit: "dr",cost: 20, weight: 20},
|
||||
{name: "Centurion Armor", description: "A set of Centurion armor, made for you", type: "armor", value: "5", unit: "dr",cost: 25, weight: 25},
|
||||
{name: "NCR Ranger Armor" , description: "A set of NCR Ranger armor, standard issue", type: "armor", value: "5", unit: "dr",cost: 30, weight: 30},
|
||||
{name: "Advanced Power Armor Mark II", description: "A set of APA MkII, branded with Enclave Logos", type: "parmor", value: "5", unit: "dt",cost: 25, weight: 25},
|
||||
{name: "T-51 Power Armor", description: "A set of T-51 Power Armor, a parting gift from the BOS", type: "parmor", value: "5", unit: "dt",cost: 30, weight: 30}
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue