Skip to content
Snippets Groups Projects
Commit 1a270f93 authored by j's avatar j
Browse files

Update checks.

parent 80e6c905
No related branches found
No related tags found
1 merge request!1340TechncianPcSkill
......@@ -197,10 +197,10 @@ __Upgrades__:
unit: 0,
type: "attack",
time: _time}>>
<<set $cash -= 10000*(1-(Math.max(0.99,$PC.technician)/100))>>
<<set $cash -= 10000*$TechnicianSkillEffect>>
<<goto "weaponsManufacturing">>
<</link>>
<br>//Will take _time weeks, cost <<print cashFormat(10000*(1-(Math.max(0.99,$PC.technician)/100)))>> and will increase the base attack value of the security drones.//
<br>//Will take _time weeks, cost <<print cashFormat(10000*$TechnicianSkillEffect)>> and will increase the base attack value of the security drones.//
<<elseif !$completedUpgrades.includes(-2) && $weapLab >= 2>>
<<link "Develop adaptive armored frames">>
<<set $currentUpgrade = {
......@@ -299,10 +299,10 @@ __Upgrades__:
unit: 1,
type: "attackAndDefense",
time: _time}>>
<<set $cash -= 120000*(1-(Math.max(0.99,$PC.technician)/100))>>
<<set $cash -= 120000*$TechnicianSkillEffect>>
<<goto "weaponsManufacturing">>
<</link>>
<br>//Will take _time weeks, cost <<print cashFormat(120000*(1-(Math.max(0.99,$PC.technician)/100)))>> and will increase the base attack and "defense" values of human troops.//
<br>//Will take _time weeks, cost <<print cashFormat(120000*$TechnicianSkillEffect)>> and will increase the base attack and "defense" values of human troops.//
<</if>>
<<if !$completedUpgrades.includes(5) && $weapLab >= 3>>
<br>
......@@ -313,10 +313,10 @@ __Upgrades__:
unit: 1,
type: "hpAndMorale",
time: _time}>>
<<set $cash -= 120000*(1-(Math.max(0.99,$PC.technician)/100))>>
<<set $cash -= 120000*$TechnicianSkillEffect>>
<<goto "weaponsManufacturing">>
<</link>>
<br>//Will take _time weeks, cost <<print cashFormat(120000*(1-(Math.max(0.99,$PC.technician)/100)))>> and will increase the base hp and morale values of human troops.//
<br>//Will take _time weeks, cost <<print cashFormat(120000*$TechnicianSkillEffect)>> and will increase the base hp and morale values of human troops.//
<</if>>
<br>
<<if $securityForceCreate == 1>>
......@@ -356,10 +356,10 @@ __Upgrades__:
unit: 1,
type: "all",
time: _time}>>
<<set $cash -= 1000000*(1-(Math.max(0.99,$PC.technician)/100))>>
<<set $cash -= 1000000*$TechnicianSkillEffect>>
<<goto "weaponsManufacturing">>
<</link>>
<br>//Will take _time weeks, cost <<print cashFormat(1000000*(1-(Math.max(0.99,$PC.technician)/100)))>> and will increase all base stats of human troops.//
<br>//Will take _time weeks, cost <<print cashFormat(1000000*$TechnicianSkillEffect)>> and will increase all base stats of human troops.//
<</if>>
<</if>>
<<if $securityForceCreate == 1 && ($humanUpgrade.attack >= 4 || $humanUpgrade.hp >= 4 || $humanUpgrade.morale >= 40 || $humanUpgrade.defense >= 4)>>
......
......@@ -433,34 +433,30 @@ if(typeof Categorizer === 'function') {
*/
jQuery(document).trigger('categorizer.ready');
window.TechnicianSkillEffect = function(PC) {
PC = PC || State.variables.PC.technician;
if(PC.technician <= -100) {
var TechnicianSkillEffect = (TechnicianSkillEffect, 1.5);
}
if(PC.technician >= -75) {
var TechnicianSkillEffect = (TechnicianSkillEffect, 1.35);
}
if(PC.technician >= -50) {
var TechnicianSkillEffect = (TechnicianSkillEffect, 1.25);
}
if(PC.technician >= -25) {
var TechnicianSkillEffect = (TechnicianSkillEffect, 1.15);
}
if(PC.technician <= 25) {
var TechnicianSkillEffect = (TechnicianSkillEffect, 1);
}
if(PC.technician >= 25) {
var TechnicianSkillEffect = (TechnicianSkillEffect, .95);
}
if(PC.technician >= 50) {
var TechnicianSkillEffect = (TechnicianSkillEffect, .75);
}
if(PC.technician >= 75) {
var TechnicianSkillEffect = (TechnicianSkillEffect, .65);
}
if(PC.technician >= 100) {
var TechnicianSkillEffect = (TechnicianSkillEffect, .5);
}
if(Story.variables.PC.technician <= -100) {
var Story.variables.TechnicianSkillEffect = "1.5"
}
if(Story.variables.PC.technician >= -75) {
var Story.variables.TechnicianSkillEffect = "1.35"
}
if(Story.variables.PC.technician >= -50) {
var Story.variables.TechnicianSkillEffect = "1.25"
}
if(Story.variables.PC.technician >= -25) {
var Story.variables.TechnicianSkillEffect = "1.15"
}
if(Story.variables.PC.technician <= 25) {
var Story.variables.TechnicianSkillEffect = "1"
}
if(Story.variables.PC.technician >= 25) {
var Story.variables.TechnicianSkillEffect = ".95"
}
if(Story.variables.PC.technician >= 50) {
var Story.variables.TechnicianSkillEffect = ".75"
}
if(Story.variables.PC.technician >= 75) {
var Story.variables.TechnicianSkillEffect = ".65"
}
if(Story.variables.PC.technician >= 100) {
var Story.variables.TechnicianSkillEffect = ".5"
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment