Bugfix and inprofments for Magic Spells

Spells now funtion with the new Skill-praefix
Spells-rolls now check on Spectialisation and Expertise
Sourcery_bonuses are also calculated
This commit is contained in:
Valanor
2021-03-26 08:09:07 +01:00
parent 6b7c595a32
commit 761a415265
13 changed files with 942 additions and 760 deletions
+92 -8
View File
@@ -811,6 +811,8 @@
.charsheet div.repcontainer[data-groupname="repeating_armor"] > .repitem, .charsheet div.repcontainer[data-groupname="repeating_armor"] > .repitem,
.charsheet div.repcontainer[data-groupname="repeating_cyberware"] > .repitem, .charsheet div.repcontainer[data-groupname="repeating_cyberware"] > .repitem,
.charsheet div.repcontainer[data-groupname="repeating_gear"] > .repitem, .charsheet div.repcontainer[data-groupname="repeating_gear"] > .repitem,
.charsheet div.repcontainer[data-groupname="repeating_perks"] > .repitem,
.charsheet div.repcontainer[data-groupname="repeating_adeptpowers"] > .repitem,
.charsheet div.repcontainer[data-groupname="repeating_spirits"] > .repitem { .charsheet div.repcontainer[data-groupname="repeating_spirits"] > .repitem {
background-color: var(--base-backcolor3); background-color: var(--base-backcolor3);
border: none; border: none;
@@ -821,6 +823,7 @@
box-shadow: 2px 2px 2px var(--box-shadow); box-shadow: 2px 2px 2px var(--box-shadow);
-webkit-transition: max-height 1s; -webkit-transition: max-height 1s;
transition: max-height 1s; transition: max-height 1s;
width: 90%;
} }
.charsheet div.repcontainer[data-groupname="repeating_meleeweapons"] > .repitem { .charsheet div.repcontainer[data-groupname="repeating_meleeweapons"] > .repitem {
@@ -881,6 +884,7 @@
box-shadow: 2px 2px 2px var(--box-shadow); box-shadow: 2px 2px 2px var(--box-shadow);
-webkit-transition: max-height 1s; -webkit-transition: max-height 1s;
transition: max-height 1s; transition: max-height 1s;
width: 90%;
max-height: 300px; max-height: 300px;
transition: max-height 1s; transition: max-height 1s;
} }
@@ -1002,6 +1006,11 @@
width: 720px; width: 720px;
} }
.charsheet div.repeating-header90 {
width: 90%;
margin-left: var(--base-padding);
}
.charsheet div.flexcontainer { .charsheet div.flexcontainer {
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
@@ -1120,6 +1129,76 @@
flex: 9; flex: 9;
} }
.charsheet span.flex--10, .charsheet div.flex--10,
.charsheet input.flex--10, .charsheet button.flex--10 {
-webkit-box-flex: 10;
-ms-flex: 10;
flex: 10;
}
.charsheet span.flex--11, .charsheet div.flex--11,
.charsheet input.flex--11, .charsheet button.flex--11 {
-webkit-box-flex: 11;
-ms-flex: 11;
flex: 11;
}
.charsheet span.flex--12, .charsheet div.flex--12,
.charsheet input.flex--12, .charsheet button.flex--12 {
-webkit-box-flex: 12;
-ms-flex: 12;
flex: 12;
}
.charsheet span.flex--13, .charsheet div.flex--13,
.charsheet input.flex--13, .charsheet button.flex--13 {
-webkit-box-flex: 13;
-ms-flex: 13;
flex: 13;
}
.charsheet span.flex--14, .charsheet div.flex--14,
.charsheet input.flex--14, .charsheet button.flex--14 {
-webkit-box-flex: 14;
-ms-flex: 14;
flex: 14;
}
.charsheet span.flex--15, .charsheet div.flex--15,
.charsheet input.flex--15, .charsheet button.flex--15 {
-webkit-box-flex: 15;
-ms-flex: 15;
flex: 15;
}
.charsheet span.flex--16, .charsheet div.flex--16,
.charsheet input.flex--16, .charsheet button.flex--16 {
-webkit-box-flex: 16;
-ms-flex: 16;
flex: 16;
}
.charsheet span.flex--17, .charsheet div.flex--17,
.charsheet input.flex--17, .charsheet button.flex--17 {
-webkit-box-flex: 17;
-ms-flex: 17;
flex: 17;
}
.charsheet span.flex--18, .charsheet div.flex--18,
.charsheet input.flex--18, .charsheet button.flex--18 {
-webkit-box-flex: 18;
-ms-flex: 18;
flex: 18;
}
.charsheet span.flex--19, .charsheet div.flex--19,
.charsheet input.flex--19, .charsheet button.flex--19 {
-webkit-box-flex: 19;
-ms-flex: 19;
flex: 19;
}
.charsheet span.flex--60, .charsheet div.flex--60, .charsheet span.flex--60, .charsheet div.flex--60,
.charsheet input.flex--60, .charsheet button.flex--60 { .charsheet input.flex--60, .charsheet button.flex--60 {
-webkit-box-flex: 1; -webkit-box-flex: 1;
@@ -1613,10 +1692,6 @@
outline-style: none; outline-style: none;
} }
.charsheet input.last, .charsheet .last, .charsheet select.last {
border-bottom-right-radius: 10px;
}
.charsheet input[type=number].right { .charsheet input[type=number].right {
float: right; float: right;
margin-right: 5px; margin-right: 5px;
@@ -1892,6 +1967,11 @@
text-align: center; text-align: center;
} }
.charsheet select.center {
text-align-last: center;
min-width: 32px;
}
.charsheet span.wb { .charsheet span.wb {
word-break: break-word; word-break: break-word;
} }
@@ -2061,10 +2141,6 @@
/*margin-top: -10px;*/ /*margin-top: -10px;*/
} }
.charsheet .first, .charsheet select.first, .charsheet input.first {
border-top-left-radius: 10px;
}
.charsheet div.skill:hover > div:first-child { .charsheet div.skill:hover > div:first-child {
/*margin-top: -10px;*/ /*margin-top: -10px;*/
font-weight: 700; font-weight: 700;
@@ -2226,6 +2302,14 @@
.charsheet div.mr--topgeg10, .charsheet button.mr--topgeg10 { .charsheet div.mr--topgeg10, .charsheet button.mr--topgeg10 {
margin-top: -10px; margin-top: -10px;
} }
.charsheet .first, .charsheet select.first, .charsheet input.first {
border-top-left-radius: 10px;
}
.charsheet input.last, .charsheet .last, .charsheet select.last {
border-bottom-right-radius: 10px;
}
/*# sourceMappingURL=sheet.css.map */ /*# sourceMappingURL=sheet.css.map */
.sheet-rolltemplate-roll, .sheet-rolltemplate-roll,
.sheet-rolltemplate-post, .sheet-rolltemplate-post,
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -146,7 +146,7 @@
"conjuring_force": "Kraftstufe", "conjuring_force": "Kraftstufe",
"conjuring_services": "Dienste", "conjuring_services": "Dienste",
"conjuring_specialisation": "+2", "conjuring_specialisation": "+2",
"conjuring_specific": "spezifische Boni ↓", "conjuring_specific": "Spezifische Boni:",
"contacs_function": "Function", "contacs_function": "Function",
"contacs_loyalty": "Loyalität", "contacs_loyalty": "Loyalität",
"contact_influence_short": "Einfluss", "contact_influence_short": "Einfluss",
@@ -634,6 +634,7 @@
"skill_range": "Fernkampf", "skill_range": "Fernkampf",
"skill_short": "Skill", "skill_short": "Skill",
"skill_sorcery": "Hexerei", "skill_sorcery": "Hexerei",
"sorcery":"Spruchzauberei",
"skill_stealth": "Heimlichkeit", "skill_stealth": "Heimlichkeit",
"skill_task": "Tasken", "skill_task": "Tasken",
"skillroll": "Fertigkeitswurf", "skillroll": "Fertigkeitswurf",
@@ -726,6 +727,7 @@
"summoner": "Herbeirufer", "summoner": "Herbeirufer",
"taser": "Taser", "taser": "Taser",
"task": "Helfer", "task": "Helfer",
"type": "Typ",
"test_modifiers": "Probenmodifikatoren", "test_modifiers": "Probenmodifikatoren",
"thrown": "Wurfwafen", "thrown": "Wurfwafen",
"title_action_monitor": "Handlungsmonitor", "title_action_monitor": "Handlungsmonitor",
+92 -8
View File
@@ -811,6 +811,8 @@
.charsheet div.repcontainer[data-groupname="repeating_armor"] > .repitem, .charsheet div.repcontainer[data-groupname="repeating_armor"] > .repitem,
.charsheet div.repcontainer[data-groupname="repeating_cyberware"] > .repitem, .charsheet div.repcontainer[data-groupname="repeating_cyberware"] > .repitem,
.charsheet div.repcontainer[data-groupname="repeating_gear"] > .repitem, .charsheet div.repcontainer[data-groupname="repeating_gear"] > .repitem,
.charsheet div.repcontainer[data-groupname="repeating_perks"] > .repitem,
.charsheet div.repcontainer[data-groupname="repeating_adeptpowers"] > .repitem,
.charsheet div.repcontainer[data-groupname="repeating_spirits"] > .repitem { .charsheet div.repcontainer[data-groupname="repeating_spirits"] > .repitem {
background-color: var(--base-backcolor3); background-color: var(--base-backcolor3);
border: none; border: none;
@@ -821,6 +823,7 @@
box-shadow: 2px 2px 2px var(--box-shadow); box-shadow: 2px 2px 2px var(--box-shadow);
-webkit-transition: max-height 1s; -webkit-transition: max-height 1s;
transition: max-height 1s; transition: max-height 1s;
width: 90%;
} }
.charsheet div.repcontainer[data-groupname="repeating_meleeweapons"] > .repitem { .charsheet div.repcontainer[data-groupname="repeating_meleeweapons"] > .repitem {
@@ -881,6 +884,7 @@
box-shadow: 2px 2px 2px var(--box-shadow); box-shadow: 2px 2px 2px var(--box-shadow);
-webkit-transition: max-height 1s; -webkit-transition: max-height 1s;
transition: max-height 1s; transition: max-height 1s;
width: 90%;
max-height: 300px; max-height: 300px;
transition: max-height 1s; transition: max-height 1s;
} }
@@ -1002,6 +1006,11 @@
width: 720px; width: 720px;
} }
.charsheet div.repeating-header90 {
width: 90%;
margin-left: var(--base-padding);
}
.charsheet div.flexcontainer { .charsheet div.flexcontainer {
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
@@ -1120,6 +1129,76 @@
flex: 9; flex: 9;
} }
.charsheet span.flex--10, .charsheet div.flex--10,
.charsheet input.flex--10, .charsheet button.flex--10 {
-webkit-box-flex: 10;
-ms-flex: 10;
flex: 10;
}
.charsheet span.flex--11, .charsheet div.flex--11,
.charsheet input.flex--11, .charsheet button.flex--11 {
-webkit-box-flex: 11;
-ms-flex: 11;
flex: 11;
}
.charsheet span.flex--12, .charsheet div.flex--12,
.charsheet input.flex--12, .charsheet button.flex--12 {
-webkit-box-flex: 12;
-ms-flex: 12;
flex: 12;
}
.charsheet span.flex--13, .charsheet div.flex--13,
.charsheet input.flex--13, .charsheet button.flex--13 {
-webkit-box-flex: 13;
-ms-flex: 13;
flex: 13;
}
.charsheet span.flex--14, .charsheet div.flex--14,
.charsheet input.flex--14, .charsheet button.flex--14 {
-webkit-box-flex: 14;
-ms-flex: 14;
flex: 14;
}
.charsheet span.flex--15, .charsheet div.flex--15,
.charsheet input.flex--15, .charsheet button.flex--15 {
-webkit-box-flex: 15;
-ms-flex: 15;
flex: 15;
}
.charsheet span.flex--16, .charsheet div.flex--16,
.charsheet input.flex--16, .charsheet button.flex--16 {
-webkit-box-flex: 16;
-ms-flex: 16;
flex: 16;
}
.charsheet span.flex--17, .charsheet div.flex--17,
.charsheet input.flex--17, .charsheet button.flex--17 {
-webkit-box-flex: 17;
-ms-flex: 17;
flex: 17;
}
.charsheet span.flex--18, .charsheet div.flex--18,
.charsheet input.flex--18, .charsheet button.flex--18 {
-webkit-box-flex: 18;
-ms-flex: 18;
flex: 18;
}
.charsheet span.flex--19, .charsheet div.flex--19,
.charsheet input.flex--19, .charsheet button.flex--19 {
-webkit-box-flex: 19;
-ms-flex: 19;
flex: 19;
}
.charsheet span.flex--60, .charsheet div.flex--60, .charsheet span.flex--60, .charsheet div.flex--60,
.charsheet input.flex--60, .charsheet button.flex--60 { .charsheet input.flex--60, .charsheet button.flex--60 {
-webkit-box-flex: 1; -webkit-box-flex: 1;
@@ -1613,10 +1692,6 @@
outline-style: none; outline-style: none;
} }
.charsheet input.last, .charsheet .last, .charsheet select.last {
border-bottom-right-radius: 10px;
}
.charsheet input[type=number].right { .charsheet input[type=number].right {
float: right; float: right;
margin-right: 5px; margin-right: 5px;
@@ -1892,6 +1967,11 @@
text-align: center; text-align: center;
} }
.charsheet select.center {
text-align-last: center;
min-width: 32px;
}
.charsheet span.wb { .charsheet span.wb {
word-break: break-word; word-break: break-word;
} }
@@ -2061,10 +2141,6 @@
/*margin-top: -10px;*/ /*margin-top: -10px;*/
} }
.charsheet .first, .charsheet select.first, .charsheet input.first {
border-top-left-radius: 10px;
}
.charsheet div.skill:hover > div:first-child { .charsheet div.skill:hover > div:first-child {
/*margin-top: -10px;*/ /*margin-top: -10px;*/
font-weight: 700; font-weight: 700;
@@ -2226,4 +2302,12 @@
.charsheet div.mr--topgeg10, .charsheet button.mr--topgeg10 { .charsheet div.mr--topgeg10, .charsheet button.mr--topgeg10 {
margin-top: -10px; margin-top: -10px;
} }
.charsheet .first, .charsheet select.first, .charsheet input.first {
border-top-left-radius: 10px;
}
.charsheet input.last, .charsheet .last, .charsheet select.last {
border-bottom-right-radius: 10px;
}
/*# sourceMappingURL=sheet.css.map */ /*# sourceMappingURL=sheet.css.map */
File diff suppressed because one or more lines are too long
+30 -15
View File
@@ -773,6 +773,8 @@ div.repcontainer[data-groupname="repeating_contacts"] > .repitem,
div.repcontainer[data-groupname="repeating_armor"] > .repitem, div.repcontainer[data-groupname="repeating_armor"] > .repitem,
div.repcontainer[data-groupname="repeating_cyberware"] > .repitem, div.repcontainer[data-groupname="repeating_cyberware"] > .repitem,
div.repcontainer[data-groupname="repeating_gear"] > .repitem, div.repcontainer[data-groupname="repeating_gear"] > .repitem,
div.repcontainer[data-groupname="repeating_perks"] > .repitem,
div.repcontainer[data-groupname="repeating_adeptpowers"] > .repitem,
div.repcontainer[data-groupname="repeating_spirits"] > .repitem div.repcontainer[data-groupname="repeating_spirits"] > .repitem
{ {
background-color: var(--base-backcolor3); background-color: var(--base-backcolor3);
@@ -782,6 +784,7 @@ div.repcontainer[data-groupname="repeating_spirits"] > .repitem
padding: 2px; padding: 2px;
box-shadow: 2px 2px 2px var(--box-shadow); box-shadow: 2px 2px 2px var(--box-shadow);
transition: max-height 1s; transition: max-height 1s;
width: 90%;
} }
@@ -837,14 +840,14 @@ div.repcontainer[data-groupname="repeating_spells"] > .repitem{
} }
div.spellbox{ div.spellbox{
background-color: var(--base-backcolor3); background-color: var(--base-backcolor3);
border: none; border: none;
display: inline-block; display: inline-block;
margin: 5px; margin: 5px;
padding: 2px; padding: 2px;
box-shadow: 2px 2px 2px var(--box-shadow); box-shadow: 2px 2px 2px var(--box-shadow);
transition: max-height 1s; transition: max-height 1s;
width: 90%;
max-height: 300px; max-height: 300px;
transition: max-height 1s; transition: max-height 1s;
} }
@@ -967,6 +970,10 @@ div.sectionheader label{
div.repeating-header{ div.repeating-header{
width: 720px; width: 720px;
} }
div.repeating-header90{
width: 90%;
margin-left: var(--base-padding);
}
div.flexcontainer{ div.flexcontainer{
display: flex; display: flex;
@@ -1007,7 +1014,7 @@ input.flex--half,button.flex--half{
flex: 0.5; flex: 0.5;
} }
@for $flexwidth from 2 to 10 { @for $flexwidth from 2 to 20 {
span.flex--#{$flexwidth},div.flex--#{$flexwidth}, span.flex--#{$flexwidth},div.flex--#{$flexwidth},
input.flex--#{$flexwidth},button.flex--#{$flexwidth}{ input.flex--#{$flexwidth},button.flex--#{$flexwidth}{
flex: #{$flexwidth}; flex: #{$flexwidth};
@@ -1454,9 +1461,6 @@ input:focus,input:hover,input:disabled:focus, input:disabled:hover {
} }
input.last, .last, select.last{
border-bottom-right-radius: 10px;
}
input[type=number].right { input[type=number].right {
float: right; float: right;
@@ -1719,6 +1723,10 @@ select.ammotypedropdown{
padding-left: 5px; padding-left: 5px;
text-align: center; text-align: center;
} }
select.center{
text-align-last: center;
min-width: 32px;
}
span.wb { span.wb {
word-break: break-word; word-break: break-word;
@@ -1862,9 +1870,8 @@ div.skill{
} }
.first,select.first,input.first{
border-top-left-radius: 10px;
}
div.skill:hover >div:first-child{ div.skill:hover >div:first-child{
/*margin-top: -10px;*/ /*margin-top: -10px;*/
@@ -2021,4 +2028,12 @@ div.mr--bottom{
div.mr--topgeg10,button.mr--topgeg10{ div.mr--topgeg10,button.mr--topgeg10{
margin-top: -10px; margin-top: -10px;
} }
.first,select.first,input.first{
border-top-left-radius: 10px;
}
input.last, .last, select.last{
border-bottom-right-radius: 10px;
}
} }
+42 -41
View File
@@ -114,58 +114,59 @@
<div class="flexcontainer"> <div class="flexcontainer">
<div class="flex--2"><span class="red" data-i18n="name">Name</span> </div> <div class="flex--half"></div>
<div class="flex-center pd--left"> <span class="red">Typ</span></div> <div class="flex--2"><span class="red" data-i18n="name"></span> </div>
<div class="flex-center flex--2"></div> <div class="flex-center pd--left"> <span class="red" data-i18n="type"></span></div>
<div class="flex-center"> <span class="red" data-i18n="active"></span></div>
<div class="flex-center"></div> <div class="flex-center"></div>
<div class="flex--2"></div> <div class="flex--2"></div>
</div> </div>
<fieldset class="repeating_perks"> <fieldset class="repeating_perks">
<div class="flexcontainer">
<div class="flex--2"><input class="adeptpowername first" type="text" name="attr_perks_name" value="" /> </div>
<div class="flex-center pd--left"> <select class="attributedropdown last" name="attr_perks_type" value="vorteil" >
<option value="vorteil" data-i18n="vorteil" selected>vorteil</option>
<option value="nachteil" data-i18n="nachteil">nachteil</option>
</select>
</div>
<div class="flex-center flex--2">
<label>
<input class="toggle-hide-not eye iconbutton70 pd--right" data-i18n-title="showdescription" name="attr_perks_hidefulltext" type="checkbox" value="1"/>
<span class="red" data-i18n="showdescription"></span>
</label>
</div>
<div class="flex-center"><button class="iconbutton postbutton" type="roll" name="roll_adeptpower" value="@{gm_toggle} &{template:post}{{category=^{vorteilenachteile}}}{{name=@{perks_name}}}{{description=^{@{perks_type}}\n\n@{perks_desc}}}">
<span class="red" title="" data-i18n="showinchat">showinchat</span>
</button> </div>
<div class="flex--2"></div>
</div>
<input class="toggle-hide" name="attr_perks_hidefulltext" type="checkbox" value="1"/> <input class="toggle-hide" name="attr_perks_hidefulltext" type="checkbox" value="1"/>
<div class ="togglesection"> <div class="flex-table collapseble">
<div class="flexcontainer"> <div class="flexcontainer">
<div > <div class="flex--half">
<span class="red" data-i18n="bonus"></span><span class="red">&nbsp;1</span> <label class="collapse">
<input class="toggle-hide" name="attr_perks_hidefulltext" type="checkbox" value="1"/>
<h4 class="invert"><span ></span></h4>
</label>
</div> </div>
<div class="flexcontainer pd--left pd--right"> <div class="flex--2"><input class="adeptpowername first" type="text" name="attr_perks_name" value="" /> </div>
<%- include('bonusoptions.ejs',{attr:"attribute"}); %> <div class="flex-center pd--left"> <select class="attributedropdown last" name="attr_perks_type" value="vorteil" >
<option value="vorteil" data-i18n="vorteil" selected>vorteil</option>
<option value="nachteil" data-i18n="nachteil">nachteil</option>
</select>
</div> </div>
<div class="flex-center"> <div class="flex-center">
<input class="smallinput first last" type="number" name="attr_bonus"> <input type="checkbox" data-i18n-title="active" name="attr_active" value="1">
</div>
<div >
<span class="red" data-i18n="bonus"></span><span class="red">&nbsp;2</span>
</div>
<div class="flexcontainer pd--left pd--right">
<%- include('bonusoptions.ejs',{attr:"attribute2"}); %>
</div>
<div class="flex-center">
<input class="smallinput first last" type="number" name="attr_bonus2">
</div>
<div class="flex-center">
<input type="checkbox" name="attr_active" value="1">
</div> </div>
<div class="flex-center"><button class="iconbutton postbutton" type="roll" name="roll_adeptpower" value="@{gm_toggle} &{template:post}{{category=^{vorteilenachteile}}}{{name=@{perks_name}}}{{description=^{@{perks_type}}\n\n@{perks_desc}}}">
<span class="red" title="" data-i18n="showinchat">showinchat</span>
</button> </div>
<div class="flex--2"></div>
</div>
<div class="flexcontainer">
<div >
<span class="red" data-i18n="bonus"></span><span class="red">&nbsp;1</span>
</div>
<div class="flexcontainer pd--left pd--right">
<%- include('bonusoptions.ejs',{attr:"attribute"}); %>
</div>
<div class="flex-center">
<input class="smallinput first last" type="number" name="attr_bonus">
</div>
<div >
<span class="red" data-i18n="bonus"></span><span class="red">&nbsp;2</span>
</div>
<div class="flexcontainer pd--left pd--right">
<%- include('bonusoptions.ejs',{attr:"attribute2"}); %>
</div>
<div class="flex-center">
<input class="smallinput first last" type="number" name="attr_bonus2">
</div>
</div> </div>
<div class="flexcontainer"> <div class="flexcontainer">
<textarea class="fulltextbox" type="text" name="attr_perks_desc" value=""></textarea> <textarea class="fulltextbox" type="text" name="attr_perks_desc" value=""></textarea>
+249 -187
View File
@@ -139,47 +139,43 @@
</div> </div>
<input class="toggle-hide" name="attr_adept_power_colapse" type="checkbox" value="1"/> <input class="toggle-hide" name="attr_adept_power_colapse" type="checkbox" value="1"/>
<div class="togglesection"> <div class="togglesection">
<div class="innertable"> <div class="flex-table repeating-header90">
<div class="flexcontainer pd--left">
<div class="table-row"> <div class="flex--4"><span class="red" data-i18n="adept_name">Name der Adeptenkraft</span></div>
<div class="table-cell-skill-name"><span class="red" data-i18n="adept_name">Name der Adeptenkraft</span></div> <div class="flex-center flex--2"><span class="red" data-i18n="adept_level">Stufe</span>/<span class="red" data-i18n="adept_pp">Kosten</span></div>
<div class="table-cell"><span class="red" data-i18n="adept_level">Stufe</span></div> <div class="flex-center flex--4"><span class="red" data-i18n="adept_longdesc">Langbeschreibung</span></div>
<div class="table-cell"><span class="red" data-i18n="adept_pp">Kosten</span></div> <div class="flex-center"><span class="red" data-i18n="adept_showchat">Im Chat anzeigen</span></div>
<div class="table-cell"><span class="red" data-i18n="adept_longdesc">Langbeschreibung</span></div> </div>
<div class="table-cell"><span class="red" data-i18n="adept_showchat">Im Chat anzeigen</span></div> </div>
<div class="table-cell-skill-rolls"></div>
</div>
<fieldset class="repeating_adeptpowers"> <fieldset class="repeating_adeptpowers">
<div class="table-cell-skill-name"> <div class="flex-table"><div class="flexcontainer">
<input class="adeptpowername" type="text" name="attr_adept_power_name" value="" /> <div class="flex--4">
<input class="adeptpowername first last" type="text" name="attr_adept_power_name" value="" />
</div> </div>
<div class="table-cell"> <div class="flex-center flex--2">
<input class="smallinput" type="number" name="attr_adept_power_level" value="0" placeholder="0" title="@{adept_power_level}" min="0" /> <input class="smallinput first" type="number" name="attr_adept_power_level" value="0" placeholder="0" title="@{adept_power_level}" min="0" />
<input class="smallinput last" type="number" name="attr_adept_power_cost" value="0" placeholder="0" step="0.25" title="@{adept_power_cost}" min="0" />
</div> </div>
<div class="table-cell"> <div class="flex-center flex--4">
<input class="smallinput" type="number" name="attr_adept_power_cost" value="0" placeholder="0" step="0.25" title="@{adept_power_cost}" min="0" /> <input class="toggle-hide" name="attr_toggle_rule_adeptpowers" type="checkbox" value="1" checked/>
</div>
<div class="table-cell">
<input class="toggle-hide" name="attr_toggle_rule_adeptpowers" type="checkbox" value="1"/>
<div class="magictoggle-on"> <div class="magictoggle-on">
<input class="toggle-hide-not" name="attr_toggle_rule_adeptpowers" type="checkbox" value="1"/> <input class="toggle-hide-not eye" name="attr_toggle_rule_adeptpowers" type="checkbox" value="1" checked/>
</div> </div>
<div class="magictoggle-off"> <div class="magictoggle-off">
<input class="spellrules" type="text" name="attr_adept_power_rules" value="Regeltext" /> <input class="first last" type="text" name="attr_adept_power_rules" value="Regeltext" />
<input class="toggle-hide-not" name="attr_toggle_rule_adeptpowers" type="checkbox" value="1"/> <input class="toggle-hide-not eye" name="attr_toggle_rule_adeptpowers" type="checkbox" value="1" checked/>
</div> </div>
</div> </div>
<div class="table-cell"> <div class="flex-center">
<button class="postbutton" type="roll" name="roll_adeptpower" value="@{gm_toggle} &{template:post}{{category=^{adeptpower}}}{{name=@{adept_power_name}}}{{description=@{adept_power_rules}}}"> <button class="iconbutton postbutton" type="roll" name="roll_adeptpower" value="@{gm_toggle} &{template:post}{{category=^{adeptpower}}}{{name=@{adept_power_name}}}{{description=@{adept_power_rules}}}">
<span class="cyberberry" data-i18n="showinchat">im Chat posten</span>
</button> </button>
</div> </div>
</div></div>
</fieldset> </fieldset>
</div>
</div> </div>
</div> </div>
<input class="toggle-hide" name="attr_conjuring_hide" type="checkbox" value="1" checked/> <input class="toggle-hide" name="attr_conjuring_hide" type="checkbox" value="1" checked/>
@@ -192,97 +188,121 @@
</div> </div>
<input class="toggle-hide" name="attr_conjuring_colapse" type="checkbox" value="1"/> <input class="toggle-hide" name="attr_conjuring_colapse" type="checkbox" value="1"/>
<div class="togglesection"> <div class="togglesection">
<div class="innertable"> <div class="flex-table">
<div class="table-row"> <div class="flexcontainer">
<div class="table-cell-one-third"> <div class="flex-center">
<input class="smallinput" type="number" name="attr_mod_magic" value="0" placeholder="0" title="@{mod_magic}">
<span class="red" data-i18n="mod_magic">Magiebonus allgemein</span> <span class="red" data-i18n="mod_magic">Magiebonus allgemein</span>
</div> </div>
<div class="table-cell-one-third"> <div class="flex-center">
<input class="smallinput" type="number" name="attr_mod_conjuring" value="0" placeholder="0" title="@{mod_conjuring}">
<span class="red" data-i18n="mod_conjuring">Geisterbonus allgemein</span> <span class="red" data-i18n="mod_conjuring">Geisterbonus allgemein</span>
</div> </div>
<div class="table-cell-one-third"> <div class="">
<span class="red" data-i18n="conjuring_specific">spezifische Boni ↓</span> <span class="red" data-i18n="conjuring_specific">spezifische Boni </span>
</div> </div>
<div class="flex-center">
<select class="first last center" name="attr_spirit_combat_type" value="fire" title="conjuring_combat_type">
<option value="fire" data-i18n="combat_fire" selected>Feuer (Kampf)</option>
<option value="water" data-i18n="combat_water">Wasser (Kampf)</option>
<option value="earth" data-i18n="combat_earth">Erde (Kampf)</option>
<option value="air" data-i18n="combat_air">Luft (Kampf)</option>
<option value="man" data-i18n="combat_man">Mensch (Kampf)</option>
<option value="beast" data-i18n="combat_beast">Tier (Kampf)</option>
<option value="task" data-i18n="combat_task">Helfer (Kampf)</option>
<option value="guardian" data-i18n="combat_guardian">Beschützer (Kampf)</option>
<option value="plant" data-i18n="combat_plant">Pflanze (Kampf)</option>
<option value="blood" data-i18n="combat_blood">Blut (Kampf)</option>
</select>
</div>
<div class="flex-center">
<select class="first last center" name="attr_spirit_health_type" value="fire" title="conjuring_health_type">
<option value="fire" data-i18n="health_fire">Feuer (Kampf)</option>
<option value="water" data-i18n="health_water">Wasser (Kampf)</option>
<option value="earth" data-i18n="health_earth">Erde (Kampf)</option>
<option value="air" data-i18n="health_air">Luft (Kampf)</option>
<option value="man" data-i18n="health_man" selected>Mensch (Kampf)</option>
<option value="beast" data-i18n="health_beast">Tier (Kampf)</option>
<option value="task" data-i18n="health_task">Helfer (Kampf)</option>
<option value="guardian" data-i18n="health_guardian">Beschützer (Kampf)</option>
<option value="plant" data-i18n="health_plant">Pflanze (Kampf)</option>
<option value="blood" data-i18n="health_blood">Blut (Kampf)</option>
</select>
</div>
<div class="flex-center">
<select class="first last center" name="attr_spirit_illusion_type" value="fire" title="conjuring_illusion_type">
<option value="fire" data-i18n="illusion_fire">Feuer (Kampf)</option>
<option value="water" data-i18n="illusion_water" selected>Wasser (Kampf)</option>
<option value="earth" data-i18n="illusion_earth">Erde (Kampf)</option>
<option value="air" data-i18n="illusion_air">Luft (Kampf)</option>
<option value="man" data-i18n="illusion_man">Mensch (Kampf)</option>
<option value="beast" data-i18n="illusion_beast">Tier (Kampf)</option>
<option value="task" data-i18n="illusion_task">Helfer (Kampf)</option>
<option value="guardian" data-i18n="illusion_guardian">Beschützer (Kampf)</option>
<option value="plant" data-i18n="illusion_plant">Pflanze (Kampf)</option>
<option value="blood" data-i18n="illusion_blood">Blut (Kampf)</option>
</select>
</div>
<div class="flex-center">
<select class="first last center" name="attr_spirit_manipulation_type" value="fire" title="conjuring_manipulation_type">
<option value="fire" data-i18n="manipulation_fire">Feuer (Kampf)</option>
<option value="water" data-i18n="manipulation_water">Wasser (Kampf)</option>
<option value="earth" data-i18n="manipulation_earth" selected>Erde (Kampf)</option>
<option value="air" data-i18n="manipulation_air">Luft (Kampf)</option>
<option value="man" data-i18n="manipulation_man">Mensch (Kampf)</option>
<option value="beast" data-i18n="manipulation_beast">Tier (Kampf)</option>
<option value="task" data-i18n="manipulation_task">Helfer (Kampf)</option>
<option value="guardian" data-i18n="manipulation_guardian">Beschützer (Kampf)</option>
<option value="plant" data-i18n="manipulation_plant">Pflanze (Kampf)</option>
<option value="blood" data-i18n="manipulation_blood">Blut (Kampf)</option>
</select>
</div>
<div class="flex-center">
<select class="first last center" name="attr_spirit_detection_type" value="fire" title="conjuring_detection_type">
<option value="fire" data-i18n="detection_fire">Feuer (Kampf)</option>
<option value="water" data-i18n="detection_water">Wasser (Kampf)</option>
<option value="earth" data-i18n="detection_earth">Erde (Kampf)</option>
<option value="air" data-i18n="detection_air" selected>Luft (Kampf)</option>
<option value="man" data-i18n="detection_man">Mensch (Kampf)</option>
<option value="beast" data-i18n="detection_beast">Tier (Kampf)</option>
<option value="task" data-i18n="detection_task">Helfer (Kampf)</option>
<option value="guardian" data-i18n="detection_guardian">Beschützer (Kampf)</option>
<option value="plant" data-i18n="detection_plant">Pflanze (Kampf)</option>
<option value="blood" data-i18n="detection_blood">Blut (Kampf)</option>
</select>
</div>
</div> </div>
</div> <div class="flexcontainer">
<div class="innertable"> <div class="flex-center">
<div class="table-row"> <input class="smallinput first last" type="number" name="attr_mod_magic" value="0" placeholder="0" title="@{mod_magic}">
<div class="table-cell-one-fifth">
<input class="smallinput" type="number" name="attr_conjuring_combat" value="0" placeholder="0" title="@{conjuring_specific}">
<select class="spirittypedropdown" name="attr_spirit_combat_type" value="fire" title="conjuring_combat_type">
<option value="fire" data-i18n="combat_fire" selected>Feuer (Kampf)</option>
<option value="water" data-i18n="combat_water">Wasser (Kampf)</option>
<option value="earth" data-i18n="combat_earth">Erde (Kampf)</option>
<option value="air" data-i18n="combat_air">Luft (Kampf)</option>
<option value="man" data-i18n="combat_man">Mensch (Kampf)</option>
<option value="beast" data-i18n="combat_beast">Tier (Kampf)</option>
<option value="task" data-i18n="combat_task">Helfer (Kampf)</option>
<option value="guardian" data-i18n="combat_guardian">Beschützer (Kampf)</option>
<option value="plant" data-i18n="combat_plant">Pflanze (Kampf)</option>
<option value="blood" data-i18n="combat_blood">Blut (Kampf)</option>
</select>
</div> </div>
<div class="table-cell-one-fifth"> <div class="flex-center">
<input class="smallinput" type="number" name="attr_conjuring_health" value="0" placeholder="0" title="@{conjuring_specific}"> <input class="smallinput first last" type="number" name="attr_mod_conjuring" value="0" placeholder="0" title="@{mod_conjuring}">
<select class="spirittypedropdown" name="attr_spirit_health_type" value="fire" title="conjuring_health_type">
<option value="fire" data-i18n="health_fire">Feuer (Kampf)</option>
<option value="water" data-i18n="health_water">Wasser (Kampf)</option>
<option value="earth" data-i18n="health_earth">Erde (Kampf)</option>
<option value="air" data-i18n="health_air">Luft (Kampf)</option>
<option value="man" data-i18n="health_man" selected>Mensch (Kampf)</option>
<option value="beast" data-i18n="health_beast">Tier (Kampf)</option>
<option value="task" data-i18n="health_task">Helfer (Kampf)</option>
<option value="guardian" data-i18n="health_guardian">Beschützer (Kampf)</option>
<option value="plant" data-i18n="health_plant">Pflanze (Kampf)</option>
<option value="blood" data-i18n="health_blood">Blut (Kampf)</option>
</select>
</div> </div>
<div class="table-cell-one-fifth"> <div class="">
<input class="smallinput" type="number" name="attr_conjuring_illusion" value="0" placeholder="0" title="@{conjuring_specific}">
<select class="spirittypedropdown" name="attr_spirit_illusion_type" value="fire" title="conjuring_illusion_type">
<option value="fire" data-i18n="illusion_fire">Feuer (Kampf)</option>
<option value="water" data-i18n="illusion_water" selected>Wasser (Kampf)</option>
<option value="earth" data-i18n="illusion_earth">Erde (Kampf)</option>
<option value="air" data-i18n="illusion_air">Luft (Kampf)</option>
<option value="man" data-i18n="illusion_man">Mensch (Kampf)</option>
<option value="beast" data-i18n="illusion_beast">Tier (Kampf)</option>
<option value="task" data-i18n="illusion_task">Helfer (Kampf)</option>
<option value="guardian" data-i18n="illusion_guardian">Beschützer (Kampf)</option>
<option value="plant" data-i18n="illusion_plant">Pflanze (Kampf)</option>
<option value="blood" data-i18n="illusion_blood">Blut (Kampf)</option>
</select>
</div> </div>
<div class="table-cell-one-fifth">
<input class="smallinput" type="number" name="attr_conjuring_manipulation" value="0" placeholder="0" title="@{conjuring_specific}"> <div class="flex-center">
<select class="spirittypedropdown" name="attr_spirit_manipulation_type" value="fire" title="conjuring_manipulation_type"> <input class="smallinput first last" type="number" name="attr_conjuring_combat" value="0" placeholder="0" title="@{conjuring_specific}">
<option value="fire" data-i18n="manipulation_fire">Feuer (Kampf)</option>
<option value="water" data-i18n="manipulation_water">Wasser (Kampf)</option>
<option value="earth" data-i18n="manipulation_earth" selected>Erde (Kampf)</option>
<option value="air" data-i18n="manipulation_air">Luft (Kampf)</option>
<option value="man" data-i18n="manipulation_man">Mensch (Kampf)</option>
<option value="beast" data-i18n="manipulation_beast">Tier (Kampf)</option>
<option value="task" data-i18n="manipulation_task">Helfer (Kampf)</option>
<option value="guardian" data-i18n="manipulation_guardian">Beschützer (Kampf)</option>
<option value="plant" data-i18n="manipulation_plant">Pflanze (Kampf)</option>
<option value="blood" data-i18n="manipulation_blood">Blut (Kampf)</option>
</select>
</div> </div>
<div class="table-cell-one-fifth"> <div class="flex-center">
<input class="smallinput" type="number" name="attr_conjuring_detection" value="0" placeholder="0" title="@{conjuring_specific}"> <input class="smallinput first last" type="number" name="attr_conjuring_health" value="0" placeholder="0" title="@{conjuring_specific}">
<select class="spirittypedropdown" name="attr_spirit_detection_type" value="fire" title="conjuring_detection_type">
<option value="fire" data-i18n="detection_fire">Feuer (Kampf)</option> </div>
<option value="water" data-i18n="detection_water">Wasser (Kampf)</option> <div class="flex-center">
<option value="earth" data-i18n="detection_earth">Erde (Kampf)</option> <input class="smallinput first last" type="number" name="attr_conjuring_illusion" value="0" placeholder="0" title="@{conjuring_specific}">
<option value="air" data-i18n="detection_air" selected>Luft (Kampf)</option>
<option value="man" data-i18n="detection_man">Mensch (Kampf)</option> </div>
<option value="beast" data-i18n="detection_beast">Tier (Kampf)</option> <div class="flex-center">
<option value="task" data-i18n="detection_task">Helfer (Kampf)</option> <input class="smallinput first last" type="number" name="attr_conjuring_manipulation" value="0" placeholder="0" title="@{conjuring_specific}">
<option value="guardian" data-i18n="detection_guardian">Beschützer (Kampf)</option>
<option value="plant" data-i18n="detection_plant">Pflanze (Kampf)</option> </div>
<option value="blood" data-i18n="detection_blood">Blut (Kampf)</option> <div class="flex-center">
</select> <input class="smallinput first last" type="number" name="attr_conjuring_detection" value="0" placeholder="0" title="@{conjuring_specific}">
</div> </div>
</div> </div>
<div class="table-row"> <div class="table-row">
@@ -316,8 +336,8 @@
<input class="smallinput" type="number" name="attr_conjuring_force_summoning" value="1" placeholder="1" min="1" title="@{conjuring_force}"> <input class="smallinput" type="number" name="attr_conjuring_force_summoning" value="1" placeholder="1" min="1" title="@{conjuring_force}">
</div> </div>
<div class="table-cell-one-fifth"> <div class="table-cell-one-fifth">
<button class="magicrollbutton" type="roll" name="rangeweapon" value="@{gm_toggle} &{template:roll}{{mainattribute=^{act_summoning}}}{{spiritheadline=^{@{conjuring_summoning_type}}}}{{force=@{conjuring_force_summoning}}}{{summoner=^{summoner}}}{{wilddieprop=[[@{wilddieprop}d6]]}}{{dice=[[(@{magic_conjuring_total}+@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod}+@{conjuring_specialisation}+@{conjuring_expertise}+@{conjuring_bonus})d6@{exploding_dice}cs>5>5sd]]}}{{actingpperson=^{summoner}}}{{spirit=[[(@{conjuring_force_summoning}+@{conjuring_force_summoning})d6cs>5>5sd]]}}{{drain=[[(@{display_willpower}+@{magic_drain_attribute})d6@{exploding_dice}cs>5>5sd]]}}"> <button class="iconbutton" type="roll" name="rangeweapon" value="@{gm_toggle} &{template:roll}{{mainattribute=^{act_summoning}}}{{spiritheadline=^{@{conjuring_summoning_type}}}}{{force=@{conjuring_force_summoning}}}{{summoner=^{summoner}}}{{wilddieprop=[[@{wilddieprop}d6]]}}{{dice=[[(@{skill_conjuring_total}+@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod}+@{conjuring_specialisation}+@{conjuring_expertise}+@{conjuring_bonus})d6@{exploding_dice}cs>5>5sd]]}}{{actingpperson=^{summoner}}}{{spirit=[[(@{conjuring_force_summoning}+@{conjuring_force_summoning})d6cs>5>5sd]]}}{{drain=[[(@{display_willpower}+@{magic_drain_attribute})d6@{exploding_dice}cs>5>5sd]]}}">
<span class="cyberberry" data-i18n="roll">Würfeln</span>
</button> </button>
</div> </div>
</div> </div>
@@ -352,8 +372,8 @@
<input class="smallinput" type="number" name="attr_conjuring_force_banishing" value="1" placeholder="1" min="1" title="@{conjuring_force}"> <input class="smallinput" type="number" name="attr_conjuring_force_banishing" value="1" placeholder="1" min="1" title="@{conjuring_force}">
</div> </div>
<div class="table-cell-one-fifth"> <div class="table-cell-one-fifth">
<button class="magicrollbutton" type="roll" name="rangeweapon" value="@{gm_toggle} &{template:roll}{{mainattribute=^{act_banishing}}}{{spiritheadline=^{@{conjuring_banishing_type}}}}{{force=@{conjuring_force_banishing}}}{{summoner=^{summoner}}}{{wilddieprop=[[@{wilddieprop}d6]]}}{{dice=[[(@{magic_conjuring_total}+@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod}+@{conjuring_specialisation}+@{conjuring_expertise}+@{conjuring_bonus})d6@{exploding_dice}cs>5>5sd]]}}{{actingpperson=^{summoner}}}{{spirit=[[(@{conjuring_force_banishing}+@{conjuring_force_banishing})d6cs>5>5sd]]}}{{drain=[[(@{display_willpower}+@{magic_drain_attribute})d6@{exploding_dice}cs>5>5sd]]}}"> <button class="iconbutton" type="roll" name="rangeweapon" value="@{gm_toggle} &{template:roll}{{mainattribute=^{act_banishing}}}{{spiritheadline=^{@{conjuring_banishing_type}}}}{{force=@{conjuring_force_banishing}}}{{summoner=^{summoner}}}{{wilddieprop=[[@{wilddieprop}d6]]}}{{dice=[[(@{skill_conjuring_total}+@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod}+@{conjuring_specialisation}+@{conjuring_expertise}+@{conjuring_bonus})d6@{exploding_dice}cs>5>5sd]]}}{{actingpperson=^{summoner}}}{{spirit=[[(@{conjuring_force_banishing}+@{conjuring_force_banishing})d6cs>5>5sd]]}}{{drain=[[(@{display_willpower}+@{magic_drain_attribute})d6@{exploding_dice}cs>5>5sd]]}}">
<span class="cyberberry" data-i18n="roll">Würfeln</span>
</button> </button>
</div> </div>
</div> </div>
@@ -412,103 +432,135 @@
</div> </div>
<input class="toggle-hide" name="attr_spells_colapse" type="checkbox" value="1"/> <input class="toggle-hide" name="attr_spells_colapse" type="checkbox" value="1"/>
<div class="togglesection"> <div class="togglesection">
<div class="innertable"> <div class="flex-table">
<div class="table-row"> <div class="flexcontainer">
<div class="table-cell-one-third"> <div class="flex-center flex--2">
<input class="smallinput" type="number" name="attr_mod_magic" value="0" placeholder="0" title="@{mod_magic}">
<span class="red" data-i18n="mod_magic">Magiebonus allgemein</span> <span class="red" data-i18n="mod_magic">Magiebonus allgemein</span>
</div> </div>
<div class="table-cell-one-third">
<input class="smallinput" type="number" name="attr_mod_spells" value="0" placeholder="0" title="@{mod_spells}"> <div class="flex-center flex--2">
<span class="red" data-i18n="mod_spells">Zauberbonus allgemein</span> <span class="red" data-i18n="mod_spells">Zauberbonus allgemein</span>
</div> </div>
<div class="table-cell-one-third"> <div class=""">
<span class="cyberberry-normal" data-i18n="spells_specific">spezifische Boni ↓</span> <span class="red" data-i18n="conjuring_specific">spezifische Boni</span>
<div class="smallspacer">&nbsp;</div> </div>
<div class="flex-center">
<span class="cyberberry-normal" data-i18n="spell_bonus_combat">Kampf</span>
</div> </div>
<div class="flex-center">
<span class="cyberberry-normal" data-i18n="spell_bonus_health">Heilung</span>
</div>
<div class="flex-center">
<span class="cyberberry-normal" data-i18n="spell_bonus_illusion">Illusion</span>
</div>
<div class="flex-center">
<span class="cyberberry-normal" data-i18n="spell_bonus_manipulation">Manipulation</span>
</div>
<div class="flex-center">
<span class="cyberberry-normal" data-i18n="spell_bonus_detection">Wahrnehmung</span>
</div>
</div> </div>
</div> <div class="flexcontainer">
<div class="innertable"> <div class="flex-center flex--2">
<div class="table-row"> <input class="smallinput first last" type="number" name="attr_mod_magic" value="0" placeholder="0" title="@{mod_spells}">
<div class="table-cell-one-fifth">
<span class="cyberberry-normal" data-i18n="spell_bonus_combat">Kampf</span>
<input class="smallinput right" type="number" name="attr_spell_combat_bonus" value="0" placeholder="0" title="@{spell_combat_bonus}">
</div> </div>
<div class="table-cell-one-fifth"> <div class="flex-center flex--2">
<span class="cyberberry-normal" data-i18n="spell_bonus_health">Heilung</span> <input class="smallinput first last" type="number" name="attr_mod_spells" value="0" placeholder="0" title="@{mod_spells}">
<input class="smallinput right" type="number" name="attr_spell_health_bonus" value="0" placeholder="0" title="@{spell_health_bonus}">
</div> </div>
<div class="table-cell-one-fifth"> <div class="flex-center">
<span class="cyberberry-normal" data-i18n="spell_bonus_illusion">Illusion</span>
<input class="smallinput right" type="number" name="attr_spell_illusion_bonus" value="0" placeholder="0" title="@{spell_illusion_bonus}">
</div> </div>
<div class="table-cell-one-fifth"> <div class="flex-center">
<span class="cyberberry-normal" data-i18n="spell_bonus_manipulation">Manipulation</span> <input class="smallinput right first last" type="number" name="attr_spell_combat_bonus" value="0" placeholder="0" title="@{spell_combat_bonus}">
<input class="smallinput right" type="number" name="attr_spell_manipulation_bonus" value="0" placeholder="0" title="@{spell_manipulation_bonus}">
</div> </div>
<div class="table-cell-one-fifth">
<span class="cyberberry-normal" data-i18n="spell_bonus_detection">Wahrnehmung</span> <div class="flex-center">
<input class="smallinput right" type="number" name="attr_spell_detection_bonus" value="0" placeholder="0" title="@{spell_detection_bonus}"> <input class="smallinput right first last" type="number" name="attr_spell_health_bonus" value="0" placeholder="0" title="@{spell_health_bonus}">
</div>
<div class="flex-center">
<input class="smallinput right first last" type="number" name="attr_spell_illusion_bonus" value="0" placeholder="0" title="@{spell_illusion_bonus}">
</div>
<div class="flex-center">
<input class="smallinput right first last" type="number" name="attr_spell_manipulation_bonus" value="0" placeholder="0" title="@{spell_manipulation_bonus}">
</div>
<div class="flex-center">
<input class="smallinput right first last" type="number" name="attr_spell_detection_bonus" value="0" placeholder="0" title="@{spell_detection_bonus}">
</div> </div>
</div> </div>
</div> </div>
<span class="cyberberry-normal" data-i18n="filter">Suche</span><input class="spellname" type="text" name="attr_spell_filter" value="" /> <span class="cyberberry-normal" data-i18n="filter">Suche</span><input class="spellname first last" type="text" name="attr_spell_filter" value="" />
<fieldset class="repeating_spells"> <fieldset class="repeating_spells">
<input class="toggle-hide-invert" style="display: none;" name="attr_spells_colapse" type="checkbox" value="1"/> <input class="toggle-hide-invert" style="display: none;" name="attr_spells_colapse" type="checkbox" value="1"/>
<div class="togglesection"> <div class="togglesection">
<input class="toggle-hide" name="attr_collapse_spelldetails" type="checkbox" value="1"/> <input class="toggle-hide" name="attr_collapse_spelldetails" type="checkbox" value="1"/>
<div class="spellbox collapseble"> <div class="spellbox collapseble">
<div class="innertable"> <div class="flex-table">
<div class="table-row"> <div class="flexcontainer">
<div class="table-cell"> <div class="flex--half">
<label> <label class="collapse">
<input class="toggle-hide" name="attr_collapse_spelldetails" type="checkbox" value="1"/> <input class="toggle-hide" name="attr_collapse_spelldetails" type="checkbox" value="1"/>
<h4 class="invert"><span ></span></h4> <h4 class="invert"><span ></span></h4>
</label> </label>
</div> </div>
<div class="table-cell-one-fifth"> <div class="flex--4">
<input class="spellname" type="text" name="attr_spell_name" value="" /> <input class="spellname first last" type="text" name="attr_spell_name" value="" />
</div> </div>
<div class="table-cell"> <div class="flex--2">
<span class="cyberberry-normal pd--right" data-i18n="spelldrain">Entzug</span> <span class="cyberberry-normal pd--right" data-i18n="spelldrain">Entzug</span>
</div> </div>
<div class="table-cell"> <div class="flex-center">
<input class="smallinput first last" type="number" name="attr_spell_drain_base" value="2" placeholder="2" min="2" title="@{spell_drain_base}"> <input class="smallinput first last" type="number" name="attr_spell_drain_base" value="2" placeholder="2" min="2" title="@{spell_drain_base}">
</div> </div>
<div class="table-cell"> <div class="flex--2">
<span class="cyberberry-normal pd--right" data-i18n="spelldrainampup">Hochdrehen</span> <span class="cyberberry-normal pd--right" data-i18n="spelldrainampup">Hochdrehen</span>
</div> </div>
<div class="table-cell"> <div class="flex-center">
<input class="smallinput first last" type="number" name="attr_spelldrainampup" value="0" placeholder="0" min="0" title="@{spelldrainampup}"> <input class="smallinput first last" type="number" name="attr_spelldrainampup" value="0" placeholder="0" min="0" title="@{spelldrainampup}">
<input class="smallinput" type="hidden" name="attr_spelldamage" value="0" placeholder="0" min="0" title="@{spelldamage}"> <input class="smallinput" type="hidden" name="attr_spelldamage" value="0" placeholder="0" min="0" title="@{spelldamage}">
</div> </div>
<div class="table-cell"> <div class="flex--2">
<span class="cyberberry-normal pd--right" data-i18n="spell_drain_area">Fläche vergrößern</span> <span class="cyberberry-normal pd--right" data-i18n="spell_drain_area">Fläche vergrößern</span>
</div> </div>
<div class="table-cell"> <div class="flex-center">
<input class="smallinput first last" type="number" name="attr_spell_drain_area" value="0" placeholder="0" min="0" title="@{spell_drain_area}"> <input class="smallinput first last" type="number" name="attr_spell_drain_area" value="0" placeholder="0" min="0" title="@{spell_drain_area}">
</div> </div>
<div class="table-cell"></div> <div class="">
<div class="table-cell"> <span class="cyberberry-normal" data-i18n="pool"></span>
<button class="iconbutton50" type="roll" name="roll_cast_spell" value="@{gm_toggle} &{template:roll}{{mainattribute=^{act_spellcasting}}}{{spiritheadline=@{spell_name}}}{{category=^{@{spellscategory}}}}{{range=^{@{spellsrange}}}}{{type=^{@{spellstype}}}}{{duration=^{@{spellsduration}}}}{{spelldamage=[[@{spelldamage}]]}}{{draincode=[[@{spell_drain_base}+2*@{spelldrainampup}+@{spell_drain_area}]]}}{{drain=[[(@{display_willpower}+@{magic_drain_attribute})d6@{exploding_dice}cs>5>5sd]]}}{{wilddieprop=[[@{wilddieprop}d6]]}}{{dice=[[(@{magic_sorcery_total}+@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod}+@{sorcery_bonus})d6@{exploding_dice}cs>5>5sd]]}}{{resist=^{@{spellsresist}}}}{{description=@{spells_rules}}}"> </div>
<span class="cyberberry" data-i18n="roll">Würfeln</span> <div class="flex-center">
<input class="smallinput first last" type="number" name="attr_spellpool" value="@{sorcery_bonus}+@{skill_sorcery_total}" disabled>
</div>
<div class="">
<button class="iconbutton" type="roll" name="roll_cast_spell" value="@{gm_toggle} &{template:roll}{{mainattribute=^{act_spellcasting}}}{{spiritheadline=@{spell_name}}}{{category=^{@{spellscategory}}}}{{range=^{@{spellsrange}}}}{{type=^{@{spellstype}}}}{{duration=^{@{spellsduration}}}}{{spelldamage=[[@{spelldamage}]]}}{{draincode=[[@{spell_drain_base}+2*@{spelldrainampup}+@{spell_drain_area}]]}}{{drain=[[(@{display_willpower}+@{magic_drain_attribute})d6@{exploding_dice}cs>5>5sd]]}}{{wilddieprop=[[@{wilddieprop}d6]]}}{{dice=[[(@{skill_sorcery_total}+@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod}+@{sorcery_bonus})d6@{exploding_dice}cs>5>5sd]]}}{{resist=^{@{spellsresist}}}}{{description=@{spells_rules}}}">
</button> </button>
</div> </div>
</div> </div>
</div>
<div class="innertable"> <div class="flexcontainer">
<div class="table-row"> <div class="flex--half">
<div class="table-cell pd--left">
</div>
<div class="flex--4 pd--left">
<span class="cyberberry-nopadding" data-i18n="spell_category">Kategorie</span> <span class="cyberberry-nopadding" data-i18n="spell_category">Kategorie</span>
</div> </div>
<div class="table-cell"> <div class="flex--3">
<select class="spellcategorydropdown whitebackground" name="attr_spellscategory" value="health" title="spells_type"> <select class=" whitebackground first last" name="attr_spellscategory" value="health" title="spells_type">
<option value="spells_health" data-i18n="spells_health" selected>Heilung</option> <option value="spells_health" data-i18n="spells_health" selected>Heilung</option>
<option value="spells_combat_direct" data-i18n="spells_combat_direct">Kampf</option> <option value="spells_combat_direct" data-i18n="spells_combat_direct">Kampf</option>
<option value="spells_combat_indirect" data-i18n="spells_combat_indirect">Kampf</option> <option value="spells_combat_indirect" data-i18n="spells_combat_indirect">Kampf</option>
@@ -516,48 +568,53 @@
<option value="spells_manipulation" data-i18n="spells_manipulation" >Manipulation</option> <option value="spells_manipulation" data-i18n="spells_manipulation" >Manipulation</option>
<option value="spells_detection" data-i18n="spells_detection">Wahrnehmung</option> <option value="spells_detection" data-i18n="spells_detection">Wahrnehmung</option>
</select> </select>
<input class="smallinput hiddeninput" type="number" name="attr_sorcery_bonus" value="0" placeholder="0" title="@{sorcery_bonus}" readonly> <input class="smallinput hidden" type="number" name="attr_sorcery_bonus" value="0" placeholder="0" title="@{sorcery_bonus}" readonly>
</div> </div>
<div class="table-cell"> <div class="flex--2">
<span class="cyberberry-normal" data-i18n="spell_range">Reichweite</span> <span class="cyberberry-normal" data-i18n="spell_range">Reichweite</span>
</div> </div>
<div class="table-cell"> <div class="flex-center">
<select class="spellrangedropdown whitebackground" name="attr_spellsrange" value="touch" title="spells_range" dir="rtl"> <select class="center whitebackground first last" name="attr_spellsrange" value="touch" title="spells_range" dir="rtl">
<option value="spells_range_b" data-i18n="spells_range_b" selected>B</option> <option value="spells_range_b" data-i18n="spells_range_b" selected>B</option>
<option value="spells_range_bf" data-i18n="spells_range_bf">BF</option> <option value="spells_range_bf" data-i18n="spells_range_bf">BF</option>
<option value="spells_range_bff" data-i18n="spells_range_bff">BF (F)</option> <option value="spells_range_bff" data-i18n="spells_range_bff">BF (F)</option>
</select> </select>
</div> </div>
<div class="table-cell"> <div class="flex--2">
<span class="cyberberry-normal" data-i18n="spell_type">Art</span> <span class="cyberberry-normal" data-i18n="spell_type">Art</span>
</div> </div>
<div class="table-cell"> <div class="flex-center">
<select class="spelltypedropdown whitebackground" name="attr_spellstype" value="mana" title="spells_type"> <select class="center whitebackground first last" name="attr_spellstype" value="mana" title="spells_type">
<option value="spells_type_m" data-i18n="spells_type_m" selected>M</option> <option value="spells_type_m" data-i18n="spells_type_m" selected>M</option>
<option value="spells_type_p" data-i18n="spells_type_p">P</option> <option value="spells_type_p" data-i18n="spells_type_p">P</option>
</select> </select>
</div> </div>
<div class="table-cell"> <div class="">
<span class="cyberberry-normal" data-i18n="spell_duration">Dauer</span> <span class="cyberberry-normal" data-i18n="spell_duration">Dauer</span>
</div> </div>
<div class="table-cell"> <div class="flex-center">
<select class="adeptpowercostdropdown whitebackground" name="attr_spellsduration" value="instant" title="spells_duration"> <select class="center whitebackground first last" name="attr_spellsduration" value="instant" title="spells_duration">
<option value="spells_duration_i" data-i18n="spells_duration_i" selected>S</option> <option value="spells_duration_i" data-i18n="spells_duration_i" selected>S</option>
<option value="spells_duration_s" data-i18n="spells_duration_s">A</option> <option value="spells_duration_s" data-i18n="spells_duration_s">A</option>
<option value="spells_duration_l" data-i18n="spells_duration_l">ZB</option> <option value="spells_duration_l" data-i18n="spells_duration_l">ZB</option>
<option value="spells_duration_p" data-i18n="spells_duration_p">P</option> <option value="spells_duration_p" data-i18n="spells_duration_p">P</option>
</select> </select>
</div> </div>
<div class=""></div>
</div> </div>
<div class="table-row"> <div class="flexcontainer">
<div class="table-cell-one-fifth"> <div class="flex--half">
</div>
<div class="flex--4">
<!--<div class="smallspacertwenty">&nbsp;</div>--> <!--<div class="smallspacertwenty">&nbsp;</div>-->
<span class="cyberberry-normal" data-i18n="spells_resist_choose">auswählen</span> <span class="cyberberry-normal" data-i18n="spells_resist_choose">auswählen</span>
</div> </div>
<div class="table-cell"> <div></div>
<select class="spellresistdropdown whitebackground" name="attr_spellsresist" value="choose" title="spells_resist"> <div class="flex--3">
<select class="spellresistdropdown whitebackground first last" name="attr_spellsresist" value="choose" title="spells_resist">
<option value="spells_resist_choose" selected></option> <option value="spells_resist_choose" selected></option>
<option value="spells_resist_threshold" data-i18n="spells_resist_threshold">Schwellenwert</option> <option value="spells_resist_threshold" data-i18n="spells_resist_threshold">Schwellenwert</option>
<option value="spells_resist_bodstr" data-i18n="spells_resist_bodstr">KON + STÄ</option> <option value="spells_resist_bodstr" data-i18n="spells_resist_bodstr">KON + STÄ</option>
@@ -571,28 +628,33 @@
<option value="spells_resist_willog" data-i18n="spells_resist_willog">WIL + LOG</option> <option value="spells_resist_willog" data-i18n="spells_resist_willog">WIL + LOG</option>
</select> </select>
</div> </div>
<div class="table-cell"> <div class="flex--7">
<input class="toggle-hide" name="attr_toggle_rule_spells" type="checkbox" value="1"/> <input class="toggle-hide" name="attr_toggle_rule_spells" type="checkbox" value="1"/>
<div class="magictoggle-on"> <div class="magictoggle-on">
<button class="spelltogglebutton" type="action" name="act_unlockrules"> <button class="iconbutton70" type="action" name="act_unlockrules">
<span class="cyberberry-normal" data-i18n="show_rules">Eingabemodus</span> <span class="cyberberry-normal" data-i18n="show_rules">Eingabemodus</span>
</button> </button>
</div> </div>
<div class="magictoggle-off"> <div class="magictoggle-off">
<button class="spelltogglebutton" type="action" name="act_lockrules"> <button class="iconbutton70" type="action" name="act_lockrules">
<span class="cyberberry-normal" data-i18n="hide_rules">Fertig</span> <span class="cyberberry-normal" data-i18n="hide_rules">Fertig</span>
</button> </button>
</div> </div>
</div> </div>
<div class="flex--4">
</div> </div>
</div> </div>
<input class="toggle-hide" name="attr_toggle_rule_spells" type="checkbox" value="1"/> <input class="toggle-hide" name="attr_toggle_rule_spells" type="checkbox" value="1"/>
<div class="togglesection innertable"> <div class="togglesection flex-table">
<div class="table-row"> <div class="flexcontainer">
<div class="table-cell-half pd--left"> <div class="flex--half"></div>
<textarea class="spellrules" type="text" name="attr_spells_rules" data-i18n-placeholder="spells_rules" value="" ></textarea> <div class="flex--13">
<textarea class="spellrules first last" type="text" name="attr_spells_rules" data-i18n-placeholder="spells_rules" value="" ></textarea>
</div> </div>
<div class="flex--1"></div>
</div> </div>
<div></div>
</div> </div>
</div> </div>
</div> </div>
@@ -637,7 +699,7 @@
</div> </div>
<div class="table-cell-one-fifth"> <div class="table-cell-one-fifth">
<button class="iconbutton" type="roll" name="roll_cast_ritual" value="@{gm_toggle} &{template:roll}{{mainattribute=^{act_ritual}}}{{specialisation=@{ritual_name}}}{{drain=[[(@{display_willpower}+@{magic_drain_attribute})d6@{exploding_dice}cs>5>5sd]]}}{{wilddieprop=[[@{wilddieprop}d6]]}}{{threshold=@{threshold}}}{{dice=[[(@{magic_sorcery_total}+@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod})d6@{exploding_dice}cs>5>5sd]]}}{{description=@{ritual_desc}}}"> <button class="iconbutton" type="roll" name="roll_cast_ritual" value="@{gm_toggle} &{template:roll}{{mainattribute=^{act_ritual}}}{{specialisation=@{ritual_name}}}{{drain=[[(@{display_willpower}+@{magic_drain_attribute})d6@{exploding_dice}cs>5>5sd]]}}{{wilddieprop=[[@{wilddieprop}d6]]}}{{threshold=@{threshold}}}{{dice=[[(@{skill_sorcery_total}+@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod})d6@{exploding_dice}cs>5>5sd]]}}{{description=@{ritual_desc}}}">
</button> </button>
</div> </div>
@@ -91,7 +91,7 @@ c["charisma_modifier"]=(parseInt(data["attributes"][7]["modifiedValue"])||0)-c["
c["edge_base"]=parseInt(data["attributes"][8]["points"])||0; c["edge_base"]=parseInt(data["attributes"][8]["points"])||0;
c["edge_modifier"]=(parseInt(data["attributes"][8]["modifiedValue"])||0)-c["edge_base"]; c["edge_modifier"]=(parseInt(data["attributes"][8]["modifiedValue"])||0)-c["edge_base"];
c["display_magic"]=parseInt(data["attributes"][9]["modifiedValue"])||0; c["magic_base"]=parseInt(data["attributes"][9]["modifiedValue"])||0;
c["display_inigrade"]=parseInt(data["initiation"])||0; c["display_inigrade"]=parseInt(data["initiation"])||0;
c["display_resonance"]=parseInt(data["attributes"][10]["modifiedValue"])||0; c["display_resonance"]=parseInt(data["attributes"][10]["modifiedValue"])||0;
@@ -105,6 +105,8 @@ attrtranslate["Intuition"]="intuition";
attrtranslate["Willenskraft"]="willpower"; attrtranslate["Willenskraft"]="willpower";
attrtranslate["Stärke"]="strength"; attrtranslate["Stärke"]="strength";
attrtranslate["Reaktion"]="reaction"; attrtranslate["Reaktion"]="reaction";
attrtranslate["Magie"]="magic";
attrtranslate["Resonanze"]="resonance";
getSectionIDs("repeating_language", function(idarray) { getSectionIDs("repeating_language", function(idarray) {
for(var i=0; i < idarray.length; i++) { for(var i=0; i < idarray.length; i++) {
@@ -1313,12 +1313,56 @@ on("sheet:opened change:stun_monitor_shift", () => {
if(v.conjuring_summoning_type == v.spirit_detection_type){totalbonus += +v.conjuring_detection} if(v.conjuring_summoning_type == v.spirit_detection_type){totalbonus += +v.conjuring_detection}
totalbonus += +v.mod_magic; totalbonus += +v.mod_magic;
totalbonus += +v.mod_conjuring; totalbonus += +v.mod_conjuring;
log(totalbonus+ "= " + v.mod_magic+ " +" +v.mod_conjuring + "+ " + v.conjuring_combat )
setAttrs({ setAttrs({
conjuring_bonus: +totalbonus, conjuring_bonus: +totalbonus,
}) })
}) })
}); });
on("change:spell_combat_bonus change:spell_health_bonus change:spell_illusion_bonus change:spell_manipulation_bonus change:spell_detection_bonus change:mod_magic change:mod_spells change:repeating_spells:spellscategory", () => {
on("sheet:opened change:skill_sorcery_exp change:skill_sorcery_spec change:spell_combat_bonus change:spell_health_bonus change:spell_illusion_bonus change:spell_manipulation_bonus change:spell_detection_bonus change:mod_magic change:mod_spells",function(){
getSectionIDs("repeating_spells", pids=>{
getAttrs(["spell_combat_bonus","spell_health_bonus","spell_illusion_bonus","spell_manipulation_bonus",
"spell_detection_bonus","mod_magic","mod_spells","skill_sorcery_spec","skill_sorcery_exp"], (v) => {
let attrArray =[];
pids.forEach(id=>{attrArray.push("repeating_spells_" + id + "_spellscategory" )});
getAttrs(attrArray,(vr)=>{
const getValue = (id, field) => vr[`repeating_spells_${id}_${field}`];
pids.forEach(id=>{
// log("Check:" + id )
let cat=getValue(id,"spellscategory");
log(cat);
let totalbonus = 0;
if(cat == "spells_combat_indirect" || cat == "spells_combat_direct"){totalbonus += +v.spell_combat_bonus;}
if(cat == "spells_health"){totalbonus += +v.spell_health_bonus;}
if(cat == "spells_illusion"){totalbonus += +v.spell_illusion_bonus;}
if(cat == "spells_manipulation"){totalbonus += +v.spell_manipulation_bonus;}
if(cat == "spells_detection"){totalbonus += +v.spell_detection_bonus;}
if(v.skill_sorcery_spec.toLowerCase() ==getTranslationByKey("sorcery").toLowerCase() || v.skill_sorcery_spec.toLowerCase() == "sorcery"){totalbonus += 2; }
if(v.skill_sorcery_exp.toLowerCase() == getTranslationByKey("sorcery").toLowerCase() || v.skill_sorcery_exp.toLowerCase() == "sorcery"){totalbonus += 3}
totalbonus += +v.mod_magic;
totalbonus += +v.mod_spells;
console.log("Over base " + totalbonus + " = " + v.spell_combat_bonus + " " + v.spell_health_bonus + " " + v.spell_illusion_bonus + " " + v.spell_manipulation_bonus + " " + v.spell_detection_bonus + " / " + v.mod_magic + " / " + v.mod_spells + " | " + cat);
setAttrs({
["repeating_spells_"+ id + "_sorcery_bonus"]: +totalbonus,
})
});
});
});
});
});
on("change:repeating_spells:spellscategory", () => {
getAttrs(["spell_combat_bonus","spell_health_bonus","spell_illusion_bonus","spell_manipulation_bonus","spell_detection_bonus","mod_magic","mod_spells","repeating_spells_spellscategory","skill_sorcery_spec","skill_sorcery_exp"], (v) => { getAttrs(["spell_combat_bonus","spell_health_bonus","spell_illusion_bonus","spell_manipulation_bonus","spell_detection_bonus","mod_magic","mod_spells","repeating_spells_spellscategory","skill_sorcery_spec","skill_sorcery_exp"], (v) => {
let totalbonus = 0; let totalbonus = 0;
if(v.repeating_spells_spellscategory == "spells_combat_indirect" || v.repeating_spells_spellscategory == "spells_combat_direct"){totalbonus += +v.spell_combat_bonus;} if(v.repeating_spells_spellscategory == "spells_combat_indirect" || v.repeating_spells_spellscategory == "spells_combat_direct"){totalbonus += +v.spell_combat_bonus;}
@@ -1326,10 +1370,10 @@ on("sheet:opened change:stun_monitor_shift", () => {
if(v.repeating_spells_spellscategory == "spells_illusion"){totalbonus += +v.spell_illusion_bonus;} if(v.repeating_spells_spellscategory == "spells_illusion"){totalbonus += +v.spell_illusion_bonus;}
if(v.repeating_spells_spellscategory == "spells_manipulation"){totalbonus += +v.spell_manipulation_bonus;} if(v.repeating_spells_spellscategory == "spells_manipulation"){totalbonus += +v.spell_manipulation_bonus;}
if(v.repeating_spells_spellscategory == "spells_detection"){totalbonus += +v.spell_detection_bonus;} if(v.repeating_spells_spellscategory == "spells_detection"){totalbonus += +v.spell_detection_bonus;}
console.log("#1");
if(v.skill_sorcery_spec == "Spruchzauberei" || v.skill_sorcery_spec == "sorcery"){totalbonus += 2; console.log("#2");} if(v.skill_sorcery_spec.toLowerCase() ==getTranslationByKey("sorcery").toLowerCase()|| v.skill_sorcery_spec.toLowerCase() == "sorcery"){totalbonus += 2; console.log("#2");}
console.log("#3");
if(v.skill_sorcery_exp == "Spruchzauberei" || v.skill_sorcery_exp == "sorcery"){totalbonus += 2} if(v.skill_sorcery_exp.toLowerCase() ==getTranslationByKey("sorcery").toLowerCase()|| v.skill_sorcery_exp.toLowerCase() == "sorcery"){totalbonus += 3}
totalbonus += +v.mod_magic; totalbonus += +v.mod_magic;
totalbonus += +v.mod_spells; totalbonus += +v.mod_spells;
console.log(totalbonus + " = " + v.spell_combat_bonus + " " + v.spell_health_bonus + " " + v.spell_illusion_bonus + " " + v.spell_manipulation_bonus + " " + v.spell_detection_bonus + " / " + v.mod_magic + " / " + v.mod_spells + " | " + v.repeating_spells_spellscategory); console.log(totalbonus + " = " + v.spell_combat_bonus + " " + v.spell_health_bonus + " " + v.spell_illusion_bonus + " " + v.spell_manipulation_bonus + " " + v.spell_detection_bonus + " / " + v.mod_magic + " / " + v.mod_spells + " | " + v.repeating_spells_spellscategory);
@@ -1,6 +1,6 @@
on("sheet:opened",function(){ on("sheet:opened",function(){
getAttrs(["version","magic_conjuring_attribute","magic_sorcery_attribute","magic_enchanting_attribute", getAttrs(["version","magic_conjuring_attribute","magic_sorcery_attribute","magic_enchanting_attribute",
"display_magic","display_powerpoints"],function(v){ "display_magic","display_powerpoints",],function(v){
if (pInt(v.version)<1){ if (pInt(v.version)<1){
updatetoVersion1(v) updatetoVersion1(v)
} }
@@ -9,9 +9,9 @@ on("sheet:opened",function(){
}); });
function updatetoVersion1(v){ function updatetoVersion1(v){
setAttrs({version:1, setAttrs({version:1,
skill_conjuring_attribute:pInt(v.magic_conjuring_attribute), skill_conjuring_attribute:v.magic_conjuring_attribute,
skill_enchanting_attribute:pInt(v.magic_enchanting_attribute), skill_enchanting_attribute:v.magic_enchanting_attribute,
skill_sorcery_attribute:pInt(v.magic_sorcery_attribute), skill_sorcery_attribute:v.magic_sorcery_attribute,
magic_base:pInt(v.display_magic), magic_base:pInt(v.display_magic),
adeptpowerpoints:pInt(v.display_powerpoints) adeptpowerpoints:pInt(v.display_powerpoints)
}); });
+2 -3
View File
@@ -15,7 +15,7 @@ selected: Name of the Selectet Attribute*/%>
<div class="table-cell"><input class="smallinput" type="number" name="attr_skill_<%= name %>_statusmodifier" value="0" placeholder="0" title="@{skill_<%= name %>_statusmodifier}" readonly /> </div> <div class="table-cell"><input class="smallinput" type="number" name="attr_skill_<%= name %>_statusmodifier" value="0" placeholder="0" title="@{skill_<%= name %>_statusmodifier}" readonly /> </div>
<div class="table-cell"> <div class="table-cell">
<select class="attributedropdown" name="attr_skill_<%= name %>_attribute" title="skill_<%= name %>_attribute"> <select class="attributedropdown" name="attr_skill_<%= name %>_attribute" value="display_<%= selected %>" title="skill_<%= name %>_attribute">
<option value="display_body" data-i18n="body"<% if (selected=="body") { %> selected <% } %>>KON</option> <option value="display_body" data-i18n="body"<% if (selected=="body") { %> selected <% } %>>KON</option>
<option value="display_agility" data-i18n="agility"<% if (selected=="agility") { %> selected <% } %>>GES</option> <option value="display_agility" data-i18n="agility"<% if (selected=="agility") { %> selected <% } %>>GES</option>
<option value="display_reaction" data-i18n="reaction"<% if (selected=="reaction") { %> selected <% } %>>REA</option> <option value="display_reaction" data-i18n="reaction"<% if (selected=="reaction") { %> selected <% } %>>REA</option>
@@ -24,8 +24,7 @@ selected: Name of the Selectet Attribute*/%>
<option value="display_logic" data-i18n="logic"<% if (selected=="logic") { %> selected <% } %> >LOG</option> <option value="display_logic" data-i18n="logic"<% if (selected=="logic") { %> selected <% } %> >LOG</option>
<option value="display_intuition" data-i18n="intuition"<% if (selected=="intuition") { %> selected <% } %>>INT</option> <option value="display_intuition" data-i18n="intuition"<% if (selected=="intuition") { %> selected <% } %>>INT</option>
<option value="display_charisma" data-i18n="charisma"<% if (selected=="charisma") { %> selected <% } %>>CHA</option> <option value="display_charisma" data-i18n="charisma"<% if (selected=="charisma") { %> selected <% } %>>CHA</option>
<% if (selected=="resonance") { %><option value="display_resonance" data-i18n="resonance" selected>resonanz</option><% } %> <% if (selected=="resonance") { %><option value="display_resonance" data-i18n="resonance" selected>resonanz</option><% } %><% if (selected=="magic") { %><option value="display_magic" data-i18n="magic" selected>magic</option><% } %>
<% if (selected=="magic") { %><option value="display_magic" data-i18n="magic" selected>magic</option><% } %>
</select> </select>
</div> </div>
<div class="table-cell"> <div class="table-cell">
+1 -3
View File
@@ -68,9 +68,7 @@
<%- include('skill.ejs', {name: "piloting",category:"",selected:"reaction"}); %> <%- include('skill.ejs', {name: "piloting",category:"",selected:"reaction"}); %>
<%- include('skill.ejs', {name: "con",category:"",selected:"charisma"}); %> <%- include('skill.ejs', {name: "con",category:"",selected:"charisma"}); %>
<%- include('skill.ejs', {name: "perception",category:"",selected:"intuition"}); %> <%- include('skill.ejs', {name: "perception",category:"",selected:"intuition"}); %>
<%- include('skill.ejs', {name: "conjuring",category:"",selected:"magic"}); %>
<%- include('skill.ejs', {name: "sorcery",category:"",selected:"magic"}); %>
<%- include('skill.ejs', {name: "enchanting",category:"",selected:"magic"}); %>
<%- include('skill.ejs', {name: "task",category:"",selected:"resonance"}); %> <%- include('skill.ejs', {name: "task",category:"",selected:"resonance"}); %>
<%- include('skillcustom.ejs', {name: "exoticweapon1",category:"",selected:"agility"}); %> <%- include('skillcustom.ejs', {name: "exoticweapon1",category:"",selected:"agility"}); %>
<%- include('skillcustom.ejs', {name: "exoticweapon2",category:"",selected:"agility"}); %> <%- include('skillcustom.ejs', {name: "exoticweapon2",category:"",selected:"agility"}); %>