Fixed skill point calculation
This commit is contained in:
@@ -334,7 +334,7 @@ buttonlist.forEach(button => {
|
||||
});
|
||||
|
||||
// Initialise skills and other numbered attributes
|
||||
on("change:athletics change:awareness change:melee change:shoot change:stealth change:survival change:vehicles change:art change:business change:education change:lore change:medicine change:science change:technology change:charm change:conviction change:empathy change:highsociety change:rhetoric change:streetwise change:taunt sheet:opened", function() {
|
||||
on("change:athletics change:awareness change:melee change:shoot change:stealth change:survival change:vehicles change:art change:business change:corporatelaw change:education change:interfaceX change:medicine change:remotes change:science change:technology change:charm change:conviction change:empathy change:highsociety change:rhetoric change:streetwise change:taunt sheet:opened", function() {
|
||||
getAttrs(["athletics","awareness","melee","shoot","stealth","survival","vehicles","art","business","corporatelaw","education","interfaceX","medicine","remotes","science","technology","charm","conviction","empathy","highsociety","rhetoric","streetwise","taunt","skillcap","meleebonus","shootbonus","initiativebonus","totaltraitpoints","gangassets"], function(values) {
|
||||
let athletics = parseInt(values.athletics)||0;
|
||||
let awareness = parseInt(values.awareness)||0;
|
||||
@@ -449,8 +449,8 @@ on("change:experience change:extraskills sheet:opened", function() {
|
||||
});
|
||||
|
||||
// Set unspent skill points
|
||||
on("change:athletics change:awareness change:melee change:shoot change:stealth change:survival change:vehicles change:art change:business change:education change:lore change:medicine change:science change:technology change:charm change:conviction change:empathy change:highsociety change:rhetoric change:streetwise change:taunt change:athleticsspec change:awarenessspec change:meleespec change:shootspec change:stealthspec change:survivalspec change:vehiclesspec change:artspec change:businessspec change:educationspec change:lorespec change:medicinespec change:sciencespec change:technologyspec change:charmspec change:convictionspec change:empathyspec change:highsocietyspec change:rhetoricspec change:streetwisespec change:tauntspec change:totalskillpoints sheet:opened", function() {
|
||||
getAttrs(["athletics","awareness","melee","shoot","stealth","survival","vehicles","art","business","education","lore","medicine","science","technology","charm","conviction","empathy","highsociety","rhetoric","streetwise","taunt","athleticsspec","awarenessspec","meleespec","shootspec","stealthspec","survivalspec","vehiclesspec","artspec","businessspec","educationspec","lorespec","medicinespec","sciencespec","technologyspec","charmspec","convictionspec","empathyspec","highsocietyspec","rhetoricspec","streetwisespec","tauntspec","totalskillpoints"], function(values) {
|
||||
on("change:athletics change:awareness change:melee change:shoot change:stealth change:survival change:vehicles change:art change:business change:corporatelaw change:education change:interfaceX change:medicine change:remotes change:science change:technology change:charm change:conviction change:empathy change:highsociety change:rhetoric change:streetwise change:taunt change:athleticsspec change:awarenessspec change:meleespec change:shootspec change:stealthspec change:survivalspec change:vehiclesspec change:artspec change:businessspec change:corporatelawspec change:educationspec change:interfaceXspec change:medicinespec change:remotesspec change:sciencespec change:technologyspec change:charmspec change:convictionspec change:empathyspec change:highsocietyspec change:rhetoricspec change:streetwisespec change:tauntspec change:totalskillpoints sheet:opened", function() {
|
||||
getAttrs(["athletics","awareness","melee","shoot","stealth","survival","vehicles","art","business","corporatelaw","education","interfaceX","medicine","remotes","science","technology","charm","conviction","empathy","highsociety","rhetoric","streetwise","taunt","athleticsspec","awarenessspec","meleespec","shootspec","stealthspec","survivalspec","vehiclesspec","artspec","businessspec","corporatelawspec","educationspec","interfaceXspec","medicinespec","remotesspec","sciencespec","technologyspec","charmspec","convictionspec","empathyspec","highsocietyspec","rhetoricspec","streetwisespec","tauntspec","totalskillpoints"], function(values) {
|
||||
let athletics = parseInt(values.athletics)||0;
|
||||
let awareness = parseInt(values.awareness)||0;
|
||||
let melee = parseInt(values.melee)||0;
|
||||
@@ -460,9 +460,11 @@ on("change:athletics change:awareness change:melee change:shoot change:stealth c
|
||||
let vehicles = parseInt(values.vehicles)||0;
|
||||
let art = parseInt(values.art)||0;
|
||||
let business = parseInt(values.business)||0;
|
||||
let corporatelaw = parseInt(values.corporatelaw)||0;
|
||||
let education = parseInt(values.education)||0;
|
||||
let lore = parseInt(values.lore)||0;
|
||||
let interfaceX = parseInt(values.interfaceX)||0;
|
||||
let medicine = parseInt(values.medicine)||0;
|
||||
let remotes = parseInt(values.remotes)||0;
|
||||
let science = parseInt(values.science)||0;
|
||||
let technology = parseInt(values.technology)||0;
|
||||
let charm = parseInt(values.charm)||0;
|
||||
@@ -482,9 +484,11 @@ on("change:athletics change:awareness change:melee change:shoot change:stealth c
|
||||
let vehiclesspec = CountSpecialities(values.vehiclesspec);
|
||||
let artspec = CountSpecialities(values.artspec);
|
||||
let businessspec = CountSpecialities(values.businessspec);
|
||||
let corporatelawspec = CountSpecialities(values.corporatelawspec);
|
||||
let educationspec = CountSpecialities(values.educationspec);
|
||||
let lorespec = CountSpecialities(values.lorespec);
|
||||
let interfaceXspec = CountSpecialities(values.interfaceXspec);
|
||||
let medicinespec = CountSpecialities(values.medicinespec);
|
||||
let remotesspec = CountSpecialities(values.remotesspec);
|
||||
let sciencespec = CountSpecialities(values.sciencespec);
|
||||
let technologyspec = CountSpecialities(values.technologyspec);
|
||||
let charmspec = CountSpecialities(values.charmspec);
|
||||
@@ -507,9 +511,11 @@ on("change:athletics change:awareness change:melee change:shoot change:stealth c
|
||||
+ vehicles
|
||||
+ art
|
||||
+ business
|
||||
+ corporatelaw
|
||||
+ education
|
||||
+ lore
|
||||
+ interfaceX
|
||||
+ medicine
|
||||
+ remotes
|
||||
+ science
|
||||
+ technology
|
||||
+ charm
|
||||
@@ -528,9 +534,11 @@ on("change:athletics change:awareness change:melee change:shoot change:stealth c
|
||||
+ vehiclesspec
|
||||
+ artspec
|
||||
+ businessspec
|
||||
+ corporatelawspec
|
||||
+ educationspec
|
||||
+ lorespec
|
||||
+ interfaceXspec
|
||||
+ medicinespec
|
||||
+ remotesspec
|
||||
+ sciencespec
|
||||
+ technologyspec
|
||||
+ charmspec
|
||||
|
||||
Reference in New Issue
Block a user