added effects for all of the new unique factions

This commit is contained in:
Daniel Xie 2017-05-18 15:00:37 -05:00
parent 4355511b22
commit 16547a514d
5 changed files with 138 additions and 7 deletions

@ -37,5 +37,3 @@ Private beta feedback
window, window,
6) - Maybe show total $ somewhere onscreen at all (or most) times. $/sec would also be good to know, depending on if you want the player to know that. Bottom of the menu on the left is an empty enough place to keep these. 6) - Maybe show total $ somewhere onscreen at all (or most) times. $/sec would also be good to know, depending on if you want the player to know that. Bottom of the menu on the left is an empty enough place to keep these.
CreateProgram affected by hacking skill

@ -1030,8 +1030,8 @@ initAugmentations = function() {
"capable of psychoanalyzing and profiling the personality of " + "capable of psychoanalyzing and profiling the personality of " +
"others using optimal imaging software. <br><br>" + "others using optimal imaging software. <br><br>" +
"This augmentation: <br>" + "This augmentation: <br>" +
"Increases the player's charisma by 30%. <br>" + "Increases the player's charisma by 50%. <br>" +
"Increases the player's charisma experience gain rate by 30%<br>" + "Increases the player's charisma experience gain rate by 50%<br>" +
"Increases the amount of reputation the player gains for a company by 25%<br>" + "Increases the amount of reputation the player gains for a company by 25%<br>" +
"Increases the amount of reputation the player gains for a faction by 25%"); "Increases the amount of reputation the player gains for a faction by 25%");
SmartJaw.setRequirements(150000, 400000000); SmartJaw.setRequirements(150000, 400000000);
@ -1079,7 +1079,7 @@ initAugmentations = function() {
"of negligible senescence, preventing the body from " + "of negligible senescence, preventing the body from " +
"deteriorating with age. <br><br>" + "deteriorating with age. <br><br>" +
"This augmentation increases all of the player's stats by 20%"); "This augmentation increases all of the player's stats by 20%");
nextSENS.setRequirements(200000, 300000000); nextSENS.setRequirements(175000, 300000000);
nextSENS.addToFactions(["Clarke Incorporated"]); nextSENS.addToFactions(["Clarke Incorporated"]);
if (augmentationExists(AugmentationNames.nextSENS)) { if (augmentationExists(AugmentationNames.nextSENS)) {
nextSENS.owned = Augmentations[AugmentationNames.nextSENS].owned; nextSENS.owned = Augmentations[AugmentationNames.nextSENS].owned;
@ -1226,7 +1226,6 @@ initAugmentations = function() {
//and profits as a trader/from trading //and profits as a trader/from trading
//Ishima //Ishima
Infrared vision in eyes - Increase crime chance. Increase dexterity
var INFRARet = new Augmentation(AugmentationNames.INFRARet); var INFRARet = new Augmentation(AugmentationNames.INFRARet);
INFRARet.setInfo("A retina implant consisting of a tiny chip that sits behind the " + INFRARet.setInfo("A retina implant consisting of a tiny chip that sits behind the " +
"retina. This implant lets people visually detect infrared radiation. <br><br>" + "retina. This implant lets people visually detect infrared radiation. <br><br>" +
@ -1494,7 +1493,6 @@ applyAugmentation = function(aug, faction) {
Player.hacking_mult *= 1.1; Player.hacking_mult *= 1.1;
break; break;
case AugmentationNames.PCDNIOptimizer: //High level case AugmentationNames.PCDNIOptimizer: //High level
//Allows u to better optimize code/pc when connecting with PC DNI..helps with software/IT jobs
Player.company_rep_mult *= 1.25; Player.company_rep_mult *= 1.25;
Player.hacking_mult *= 1.25; Player.hacking_mult *= 1.25;
break; break;
@ -1609,6 +1607,128 @@ applyAugmentation = function(aug, faction) {
Player.agility_exp_mult *= 1.1; Player.agility_exp_mult *= 1.1;
Player.charisma_exp_mult *= 1.1; Player.charisma_exp_mult *= 1.1;
break; break;
//Unique augmentations (for factions)
case AugmentationNames.QLink:
Player.hacking_speed_mult *= 0.9;
Player.hacking_chance_mult *= 1.3;
Player.hacking_money_mult *= 2;
break;
case AugmentationNames.SPTN97:
Player.strength_mult *= 1.75;
Player.defense_mult *= 1.75;
Player.dexterity_mult *= 1.75;
Player.agility_mult *= 1.75;
Player.hacking_mult *= 1.25;
break;
case AugmentationNames.HiveMind:
Player.hacking_grow_mult *= 3;
break;
case AugmentationNames.CordiARCReactor:
Player.strength_mult *= 1.4;
Player.defense_mult *= 1.4;
Player.dexterity_mult *= 1.4;
Player.agility_mult *= 1.4;
Player.strength_exp_mult *= 1.4;
Player.defense_exp_mult *= 1.4;
Player.dexterity_exp_mult *= 1.4;
Player.agility_exp_mult *= 1.4;
break;
case AugmentationNames.SmartJaw:
Player.charisma_mult *= 1.5;
Player.charisma_exp_mult *= 1.5;
Player.company_rep_mult *= 1.25;
Player.faction_rep_mult *= 1.25;
break;
case AugmentationNames.Neotra:
Player.strength_mult *= 1.75;
Player.defense_mult *= 1.75;
break;
case AugmentationNames.Xanipher:
Player.hacking_mult *= 1.25;
Player.strength_mult *= 1.25;
Player.defense_mult *= 1.25;
Player.dexterity_mult *= 1.25;
Player.agility_mult *= 1.25;
Player.charisma_mult *= 1.25;
Player.hacking_exp_mult *= 1.2;
Player.strength_exp_mult *= 1.2;
Player.defense_exp_mult *= 1.2;
Player.dexterity_exp_mult *= 1.2;
Player.agility_exp_mult *= 1.2;
Player.charisma_exp_mult *= 1.2;
break;
case AugmentationNames.nextSENS:
Player.hacking_mult *= 1.2;
Player.strength_mult *= 1.2;
Player.defense_mult *= 1.2;
Player.dexterity_mult *= 1.2;
Player.agility_mult *= 1.2;
Player.charisma_mult *= 1.2;
break;
case AugmentationNames.OmniTekInfoLoad:
Player.hacking_mult *= 1.3;
Player.hacking_exp_mult *= 1.3;
break;
case AugmentationNames.PhotosyntheticCells:
Player.strength_mult *= 1.5;
Player.defense_mult *= 1.5;
Player.agility_mult *= 1.5;
break;
case AugmentationNames.Neurolink:
Player.hacking_mult *= 1.2;
Player.hacking_exp_mult *= 1.25;
Player.hacking_chance_mult *= 1.1;
Player.hacking_speed_mult *= 0.95;
break;
case AugmentationNames.TheBlackHand:
Player.strength_mult *= 1.2;
Player.dexterity_mult *= 1.2;
Player.hacking_mult *= 1.1;
Player.hacking_speed_mult *= 0.98;
Player.hacking_money_mult *= 1.1;
break;
case AugmentationNames.CRTX42AA:
Player.hacking_mult *= 1.1;
Player.hacking_exp_mult *= 1.2;
break;
case AugmentationNames.Neuregen:
Player.hacking_exp_mult *= 1.75;
break;
case AugmentationNames.NutriGen:
Player.strength_exp_mult *= 1.2;
Player.defense_exp_mult *= 1.2;
Player.dexterity_exp_mult *= 1.2;
Player.agility_exp_mult *= 1.2;
break;
case AugmentationNames.INFRARet:
Player.crime_success_mult *= 1.25;
Player.crime_money_mult *= 1.1;
Player.dexterity_mult *= 1.1;
break;
case AugmentationNames.DermaForce:
Player.defense_mult *= 1.5;
break;
case AugmentationNames.GrapheneBrachiBlades:
Player.strength_mult *= 1.75;
Player.defense_mult *= 1.75;
break;
case AugmentationNames.GrapheneBionicArms:
Player.strength_mult *= 2;
Player.dexterity_mult *= 2;
break;
case AugmentationNames.BrachiBlades:
Player.strength_mult *= 1.25;
Player.defense_mult *= 1.25;
break;
case AugmentationNames.BionicArms:
Player.strength_mult *= 1.5;
Player.dexterity_mult *= 1.5;
break;
case AugmentationNames.SNA:
Player.work_money_mult *= 1.1;
Player.company_rep_mult *= 1.2;
Player.faction_rep_mult *= 1.2;
break;
default: default:
throw new Error("ERROR: No such augmentation!"); throw new Error("ERROR: No such augmentation!");
return; return;

@ -78,6 +78,7 @@ function determineCrimeSuccess(crime, moneyGained) {
dialogBoxCreate("ERR: Unrecognized crime type. This is probably a bug please contact the developer"); dialogBoxCreate("ERR: Unrecognized crime type. This is probably a bug please contact the developer");
return; return;
} }
chance *= Player.crime_success_mult;
if (Math.random() <= chance) { if (Math.random() <= chance) {
//Success //Success
Player.gainMoney(moneyGained); Player.gainMoney(moneyGained);

@ -17,6 +17,7 @@ function PlayerObject() {
this.hacking_chance_mult = 1; //Increase through ascensions/augmentations this.hacking_chance_mult = 1; //Increase through ascensions/augmentations
this.hacking_speed_mult = 1; //Decrease through ascensions/augmentations this.hacking_speed_mult = 1; //Decrease through ascensions/augmentations
this.hacking_money_mult = 1; //Increase through ascensions/augmentations. Can't go above 1 this.hacking_money_mult = 1; //Increase through ascensions/augmentations. Can't go above 1
this.hacking_grow_mult = 1;
//Note: "Lifetime" refers to current ascension, "total" refers to the entire game history //Note: "Lifetime" refers to current ascension, "total" refers to the entire game history
//Accumulative stats and skills //Accumulative stats and skills
@ -116,6 +117,7 @@ function PlayerObject() {
this.numTimesHeistLifetime = 0; this.numTimesHeistLifetime = 0;
this.crime_money_mult = 1; this.crime_money_mult = 1;
this.crime_success_mult = 1;
//Flag to let the engine know the player is starting an action //Flag to let the engine know the player is starting an action
// Current actions: hack, analyze // Current actions: hack, analyze

@ -127,6 +127,16 @@ function prestigeAugmentation() {
homeComp.isOnline = true; homeComp.isOnline = true;
homeComp.ramUsed = 0; homeComp.ramUsed = 0;
homeComp.programs.push(Programs.NukeProgram); homeComp.programs.push(Programs.NukeProgram);
if (augmentationExists(AugmentationNames.Neurolink) &&
Augmentations[AugmentationNames.Neurolink].owned) {
homeComp.programs.push(Programs.FTPCrackProgram);
homeComp.programs.push(Programs.RelaySMTPProgram);
}
if (augmentationExists(AugmentationNames.CashRoot) &&
Augmentations[AugmentationNames.CashRoot].owned) {
Player.money = 1000000;
homeComp.programs.push(Programs.BruteSSHProgram);
}
Player.currentServer = homeComp.ip; Player.currentServer = homeComp.ip;
Player.homeComputer = homeComp.ip; Player.homeComputer = homeComp.ip;
AddToAllServers(homeComp); AddToAllServers(homeComp);