Combat partially done, encounters fixed.

This commit is contained in:
Raktbastr 2025-04-27 00:10:05 -05:00
parent 8485d7d800
commit df257c6420
5 changed files with 138 additions and 131 deletions

View file

@ -17,8 +17,13 @@ global.inventory = [ // Inventory of player, holds all items
// Supplies: chems, aid
[],
// Equipment: weapons, armor, tools
[]
[
equipmentList[27],
equipmentList[24],
]
]
global.equippedWeapon = equipmentList[27];
global.equippedArmor = equipmentList[24];
// Game Mechanics
global.walkRate = 0; // Units the player walks per day, affects foodRateCalc and radPointsCalc
@ -87,8 +92,12 @@ global.equipmentList = [ // Equipment: weapons, armor, tools
{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},
// Special Armor
{name: "Chinese Stealth Suit", description: "Chinese Stealth Suit, +25% Chance to skip encounter if worn", type: "uarmor", value: "5", unit: "dr",cost: 20, weight: 20},
{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: "Chinese Stealth Suit", description: "Chinese Stealth Suit, +25% Chance to skip encounter if worn", type: "uarmor", resistances: {balistic: 5, slash: 5, laser: 5, plasma: 5}, 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},
// Fists (Yes I know this should go by the weapons but I dont wanna mess this up)
{name: "Fists (Unarmed)", description: "Unarmed combat, does 5 bash damage", type: "weapon", value: "5", unit: "bash", cost: 5, weight: 1},
];
global.achievements = [