//Created by students A and B collaboratively // Now holds only variables // To allow a variable to be read/wrote from across files you must begin them with "global.variablename" // Items and related stats 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 {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, good protection from laser weapons.", type: "armor", resistances: {balistic: 2, slash: 2, laser: 5, plasma: 3}, unit: "dr", cost: 5, weight: 5}, {name: "Sturdy Leather Armor", description: "A set of combat armor, better protection from laser and plasma weapons.", type: "armor", resistances: {balistic: 5, slash: 5, laser: 10, plasma: 10}, unit: "dr", cost: 5, weight: 5}, {name: "Raider Armor", description: "A set of raider armor, good protection from balistic damage.", type: "armor", resistances: {balistic: 5, slash: 3, laser: 2, plasma: 2}, unit: "dr", cost: 5, weight: 5}, {name: "Metal Armor" , description: "A set of raider armor, better protection from ballistic and slash damage.", type: "armor", resistances: {balistic: 10, slash: 10, laser: 5, plasma: 5}, unit: "dr", cost: 5, weight: 5}, {name: "Combat Armor", description: "A set of combat armor, better protection from all damage types.", type: "armor", resistances: {balistic: 10, slash: 10, laser: 10, plasma: 10}, unit: "dr", cost: 5, weight: 5}, {name: "Centurion Armor", description: "A set of Centurion armor, great protection from ballistic damage.", type: "armor", value: "5", unit: "dr",cost: 25, weight: 25}, {name: "NCR Ranger Armor" , description: "A set of NCR Ranger armor, great protection from laser and plasma weapons", type: "armor", value: "5", unit: "dr",cost: 30, weight: 30}, {name: "T-45 Power Armor", description: "A set of T-45 Power Armor, protects against all damage types.", type: "parmor", resistances: {balistic: 15, slash: 15, laser: 15, plasma: 15}, unit: "dt", cost: 5, weight: 5}, {name: "T-60 Power Armor", description: "A set of T-60 Power Armor, good protection from all damage types.", type: "parmor", resistances: {balistic: 25, slash: 25, laser: 25, plasma: 25}, unit: "dt", cost: 5, weight: 5}, {name: "T-65 Power Armor", description: "A set of T-60 Power Armor, great protection from all damage types.", type: "parmor", resistances: {balistic: 35, slash: 35, laser: 35, plasma: 35}, unit: "dt", cost: 5, weight: 5}, {name: "X-01 Power Armor", description: "X-01 Power Armor, good protection from energy damage.", type: "parmor", resistances: {balistic: 10, slash: 10, laser: 30, plasma: 30}, unit: "dt", cost: 5, weight: 5},, {name: "APA MkI Power Armor", description: "APA MkI Power Armor, great protection from energy damage.", type: "parmor", resistances: {balistic: 20, slash: 20, laser: 40, plasma: 40}, unit: "dt", cost: 5, weight: 5}, {name: "APA MkII Power Armor", description: "APA MkII Power Armor, excellent protection from energy damage.", type: "parmor", resistances: {balistic: 30, slash: 30, laser: 50, plasma: 50}, unit: "dt", cost: 5, weight: 5}, {name: "Raider Power Armor", description: "Raider Power Armor, good protection from ballistic damage.", type: "parmor", resistances: {balistic: 30, slash: 30, laser: 10, plasma: 10}, unit: "dt", cost: 5, weight: 5}, {name: "Ultracite Power Armor", description: "Ultracite Power Armor, great protection from ballistic damage.", type: "parmor", resistances: {balistic: 40, slash: 40, laser: 20, plasma: 20}, unit: "dt", cost: 5, weight: 5}, {name: "T-51 Power Armor", description: "T-51 Power Armor, excellent protection from ballistic damage.", type: "parmor", resistances: {balistic: 50, slash: 50, laser: 30, plasma: 30}, unit: "dt", cost: 5, weight: 5}, {name: "Enclave Uniform", description: "Enclave uniform, standard issue", type: "armor", resistances: {balistic: 0, slash: 0, laser: 0, plasma: 0}, unit: "dr",cost: 20, weight: 20}, {name: "Excavator Power Armor", description: "Excavator Power Armor, +25% Chance to find extra loot", type: "parmor", resistances: {balistic: 5, slash: 5, laser: 5, plasma: 5}, unit: "dt", cost: 5, weight: 5}, {name: "Fists (Unarmed)", description: "Unarmed combat, does 5 bash damage", type: "weapon", value: "5", unit: "bash", cost: 5, weight: 1}, ]; // List of possible achievements you can gain (Currently not used in game) global.achievements = [ // POI/Faction Destroy {name: "Dishonorable Discharge", description: "Deactivate MODUS at the Whitespring", unlocked: false}, {name: "Force of Habit", description: "Destroy the Midwest BoS", unlocked: false}, {name: "Profligate", description: "Destroy Flagstaff", unlocked: false}, {name: "Fold", description: "Kill Mr.House, possibly dooming New Vegas", unlocked: false}, {name: "Rockets Red Glare", description: "Activate the Hopeville nuke.", unlocked: false}, {name: "Revenge", description: "Destroy Shady Sands or all NCR cities (depending on path)", unlocked: false}, {name: "Eureka!", description: "Destroy Eureka", unlocked: false}, {name: "Pit Stop", description: "Destroy Lost Hills", unlocked: false}, // Secrets {name: "Ash Heap Native", description: "Find the Excavator Power Armor", unlocked: false}, {name: "Commie Scum", description: "Find the Chinese Stealth Suit", unlocked: false}, {name: "Bots on Parade", description: "Reactivate the Calculator", unlocked: false}, {name: "7 Karat Run", description: "Find the Platnium Chip", unlocked: false}, {name: "What in the Goddamn!?", description: "Shoot and kill Benny in the Tops Casino", unlocked: false}, {name: "A chore, like any other", description: "Defeat the Malpais Legate, winning the Battle of Hoover Dam", unlocked: false}, {name: "Vault-Tec Loyalist", description: "Destory Shady Sands with the Hopeville nuke", unlocked: false}, {name: "For Auld Lang Syne", description: "Meet the Enclave Remnants in New Vegas"}, {name: "High Roller", description: "Win a game of slots"}, // Power Armor {name: "Rocket 69", description: "Apply the Jetpack upgrade to your T-60 Power Armor"}, {name: "Overgrown", description: "Apply the Strangle Heart upgrade to your Ultracite Power Armor"}, {name: "Gannon Would Be Proud", description: "Apply the Tesla upgrade to your APA Mk.I"}, {name: "All that Glitters", description: "Discover the T-65 Power Armor"}, {name: "Iconic", description: "Discover the T-51 Power Armor"}, {name: "510 Years Old", description: "Discover the APA Mk.II"}, // Faction Rep {name: "Golden Branch", description: "Become Idolized within the NCR"}, {name: "Frumentari", description: "Become Idolized within the Legion"}, {name: "Double Agent", description: "Become Idolized within the Lost Hills Brotherhood"}, {name: "Medal of Freedom", description: "Become Idolized within the Enclave"}, {name: "Presidential Suite", description: "Become Idolized within New Vegas"}, {name: "Uneasy Alliance", description: "Become Idolized within the Midwest Brotherhood"}, ] // Player Currency global.preWarMoney = 0; // Used with enclave vendors global.caps = 0; // Used with all other vendors // Player Stats global.healthCap = 0; // Maximum health, raises each level global.health = 0; // Players current HP global.food = 0; // Amount of food player has global.isRadiated = false; global.radSeverity = 0; // Modifies healthCapCalc. 3 Levels global.radPoints = 0; // If the player reaches 100 rad points the game ends global.xpPerLevel = 10; // Amount of XP needed per level. Raises 50% each level global.level = 0; // Level of player. Modifies enemy scaling global.inventory = [ // Inventory of player, holds all items equipmentList[27], equipmentList[25], ] global.equippedWeapon = equipmentList[27]; // Players currently equipped weapon global.equippedArmor = equipmentList[25]; // PLayers currently equipped armor // Game Mechanics global.walkRate = 0; // Units the player walks per day, affects foodRateCalc and radPointsCalc global.foodRate = 0; // Amount of food player eats per day, affects radPointsCalc global.path = 0; // Path player is currently on, 0 = Main, 1 = A, 2 = B global.location = 0; // Location on main path, 0-255 = main, 500-1000 = A, 1500-2000 = B global.locationA = 0; // Location on path A global.locationB = 0; // Location on path B global.day = 0; // Current day of the game, if you reach 365 the game ends global.reputation = {mwbos: 4, legion: 4, ncr: 2, bos: 1, enclave: 10, abomination: 0, raider: 0} // Rep for each faction. Number between 0(worst) and 10(best), 5 is neutral global.daysSinceScav = 0; // Days since player last scavenged. Must be >= 15 to scavenge again. global.name = "placeholder"; // Player name, changed when the game starts global.testDeath = false; // Used to test death, set to true to kill player