mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-30 03:40:32 +00:00
added species abilities
added that the species specific abilities autopopulate
This commit is contained in:
@@ -7789,6 +7789,7 @@
|
||||
width:110px;
|
||||
height:50px;
|
||||
white-space:normal;
|
||||
font-size:6.0pt;
|
||||
color:black;
|
||||
font-weight:700;
|
||||
font-family:Verdana;
|
||||
@@ -7815,6 +7816,7 @@
|
||||
width:110px;
|
||||
height:50px;
|
||||
white-space:normal;
|
||||
font-size:6.0pt;
|
||||
color:black;
|
||||
font-weight:700;
|
||||
font-family:Verdana;
|
||||
|
||||
@@ -1366,6 +1366,8 @@ on("change:species", function() {
|
||||
var aspecies_closing = [0,4,2,2,2,2,2,3,3,4,4];
|
||||
var aspecies_rushing = [0,7,5,5,5,5,5,6,6,6,8];
|
||||
var aspecies_hpbase = [0,20,14,14,15,14,11,19,22,20,14];
|
||||
var aspecies_abil1=["","FAMILIAR BREED","CONTROL OF THE EBB","CONTROL OF THE EBB","DRUG ADDICT","ADAPTABLE","BORN MANIPULATOR","HONOUR BOUND","REGENERATION (2)","REGENERATION (1)","SKILLED HUNTER"];
|
||||
var aspecies_abil2=["","AGAINST ALL ODDS","","","FEEL NO PAIN","SOCIABLE","INQUISITIVE MIND","PREHENSILE TAIL","PHYSICAL FAVOURITE","ADAPTIVE SKIN","ACUTE SENSES"];
|
||||
var speciesindex = parseInt(values["species"])||0;
|
||||
var athletics = parseInt(values["athletics"])||0;
|
||||
var bribery = parseInt(values["bribery"])||0;
|
||||
@@ -1390,6 +1392,8 @@ on("change:species", function() {
|
||||
var throwsk = parseInt(values["throw"])||0;
|
||||
var tracking = parseInt(values["tracking"])||0;
|
||||
var unarmed = parseInt(values["unarmed"])||0;
|
||||
var abil1=aspecies_abil1[speciesindex]||"";
|
||||
var abil2=aspecies_abil2[speciesindex]||"";
|
||||
|
||||
var setathletics = (speciesindex == 8 || speciesindex == 10) ? 1 : 0;
|
||||
var setbribery = (speciesindex == 6) ? 1 : 0;
|
||||
@@ -1458,6 +1462,8 @@ on("change:species", function() {
|
||||
"throw": setthrow,
|
||||
"tracking": settracking,
|
||||
"unarmed": setunarmed,
|
||||
"species_ability_1": abil1,
|
||||
"species_ability_2": abil2,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user