Skip to content

Commit

Permalink
Fix for stats not saving
Browse files Browse the repository at this point in the history
  • Loading branch information
algnc committed Nov 23, 2022
1 parent d287dfd commit ceee775
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mcc-classes",
"title": "MCC Sheets",
"description": "Sheets for Mutant Crawl Classics in FoundryVTT!",
"version": "0.1.10",
"version": "0.1.11",
"minimumCoreVersion": "10",
"compatibleCoreVersion": "10",
"author": "Steve Barnett & Christian Ovsenik",
Expand Down
18 changes: 9 additions & 9 deletions templates/actor-partial-pc-mcc-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ <h1 class="charname">
placeholder="{{localize 'DCC.CharacterName'}}"/>
</h1>
<div class="level">
<label for="data.details.level.value">{{data.class.className}} {{localize "DCC.Level"}}</label>
<input type="text" id="data.details.level.value" name="data.details.level.value"
value="{{data.details.level.value}}" maxlength="6"
<label for="system.details.level.value">{{data.class.className}} {{localize "DCC.Level"}}</label>
<input type="text" id="system.details.level.value" name="system.details.level.value"
value="{{system.details.level.value}}" maxlength="6"
data-dtype="Number"/>
</div>
</div>


<div class="occupation flex1">
<label for="data.details.occupation.value">{{localize "DCC.Occupation"}}</label>
<input type="text" id="data.details.occupation.value" name="data.details.occupation.value"
value="{{data.details.occupation.value}}" maxlength="40"/>
<label for="system.details.occupation.value">{{localize "DCC.Occupation"}}</label>
<input type="text" id="system.details.occupation.value" name="system.details.occupation.value"
value="{{system.details.occupation.value}}" maxlength="40"/>
</div>
<div class="experience">
<label for="data.details.xp.value">{{localize "DCC.Experience"}}</label>
<input type="text" id="data.details.xp.value" name="data.details.xp.value"
value="{{numberFormat data.details.xp.value decimals=0 sign=false}}"
<label for="system.details.xp.value">{{localize "DCC.Experience"}}</label>
<input type="text" id="system.details.xp.value" name="system.details.xp.value"
value="{{numberFormat system.details.xp.value decimals=0 sign=false}}"
placeholder="0" maxlength="40" data-dtype="Number"/>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/actor-sheet-healer.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<form class="{{cssClass}}" autocomplete="off">

{{!-- Hidden inputs to reflect the sheet class and force standard crit range --}}
<input type="hidden" id="data.details.sheetClass" name="data.details.sheetClass" value="Healer" data-dtype="String"/>
<input type="hidden" id="data.details.critRange" name="data.details.critRange" value="20" data-dtype="Number"/>
<input type="hidden" id="system.details.sheetClass" name="system.details.sheetClass" value="Healer" data-dtype="String"/>
<input type="hidden" id="system.details.critRange" name="system.details.critRange" value="20" data-dtype="Number"/>

{{!-- Sheet Header --}}
{{> modules/mcc-classes/templates/actor-partial-pc-mcc-header.html }}
Expand Down
4 changes: 2 additions & 2 deletions templates/actor-sheet-manimal.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<form class="{{cssClass}}" autocomplete="off">

{{!-- Hidden inputs to reflect the sheet class and force standard crit range --}}
<input type="hidden" id="data.details.sheetClass" name="data.details.sheetClass" value="Manimal" data-dtype="String"/>
<input type="hidden" id="data.details.critRange" name="data.details.critRange" value="20" data-dtype="Number"/>
<input type="hidden" id="system.details.sheetClass" name="system.details.sheetClass" value="Manimal" data-dtype="String"/>
<input type="hidden" id="system.details.critRange" name="system.details.critRange" value="20" data-dtype="Number"/>

{{!-- Sheet Header --}}
{{> modules/mcc-classes/templates/actor-partial-pc-mcc-header.html }}
Expand Down
4 changes: 2 additions & 2 deletions templates/actor-sheet-mutant.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<form class="{{cssClass}}" autocomplete="off">

{{!-- Hidden inputs to reflect the sheet class and force standard crit range --}}
<input type="hidden" id="data.details.sheetClass" name="data.details.sheetClass" value="Mutant" data-dtype="String"/>
<input type="hidden" id="data.details.critRange" name="data.details.critRange" value="20" data-dtype="Number"/>
<input type="hidden" id="system.details.sheetClass" name="system.details.sheetClass" value="Mutant" data-dtype="String"/>
<input type="hidden" id="system.details.critRange" name="system.details.critRange" value="20" data-dtype="Number"/>

{{!-- Sheet Header --}}
{{> modules/mcc-classes/templates/actor-partial-pc-mcc-header.html }}
Expand Down
4 changes: 2 additions & 2 deletions templates/actor-sheet-plantient.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<form class="{{cssClass}}" autocomplete="off">

{{!-- Hidden inputs to reflect the sheet class and force standard crit range --}}
<input type="hidden" id="data.details.sheetClass" name="data.details.sheetClass" value="Plantient" data-dtype="String"/>
<input type="hidden" id="data.details.critRange" name="data.details.critRange" value="20" data-dtype="Number"/>
<input type="hidden" id="system.details.sheetClass" name="system.details.sheetClass" value="Plantient" data-dtype="String"/>
<input type="hidden" id="system.details.critRange" name="system.details.critRange" value="20" data-dtype="Number"/>

{{!-- Sheet Header --}}
{{> modules/mcc-classes/templates/actor-partial-pc-mcc-header.html }}
Expand Down
4 changes: 2 additions & 2 deletions templates/actor-sheet-rover.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<form class="{{cssClass}}" autocomplete="off">

{{!-- Hidden inputs to reflect the sheet class and force standard crit range --}}
<input type="hidden" id="data.details.sheetClass" name="data.details.sheetClass" value="Rover" data-dtype="String"/>
<input type="hidden" id="data.details.critRange" name="data.details.critRange" value="20" data-dtype="Number"/>
<input type="hidden" id="system.details.sheetClass" name="system.details.sheetClass" value="Rover" data-dtype="String"/>
<input type="hidden" id="system.details.critRange" name="system.details.critRange" value="20" data-dtype="Number"/>

{{!-- Sheet Header --}}
{{> modules/mcc-classes/templates/actor-partial-pc-mcc-header.html }}
Expand Down
4 changes: 2 additions & 2 deletions templates/actor-sheet-sentinel.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<form class="{{cssClass}}" autocomplete="off">

{{!-- Hidden inputs to reflect the sheet class and force standard crit range --}}
<input type="hidden" id="data.details.sheetClass" name="data.details.sheetClass" value="Sentinel" data-dtype="String"/>
<input type="hidden" id="data.details.critRange" name="data.details.critRange" value="20" data-dtype="Number"/>
<input type="hidden" id="system.details.sheetClass" name="system.details.sheetClass" value="Sentinel" data-dtype="String"/>
<input type="hidden" id="system.details.critRange" name="system.details.critRange" value="20" data-dtype="Number"/>

{{!-- Sheet Header --}}
{{> modules/mcc-classes/templates/actor-partial-pc-mcc-header.html }}
Expand Down
4 changes: 2 additions & 2 deletions templates/actor-sheet-shaman.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<form class="{{cssClass}}" autocomplete="off">

{{!-- Hidden inputs to reflect the sheet class and force standard crit range --}}
<input type="hidden" id="data.details.sheetClass" name="data.details.sheetClass" value="Shaman" data-dtype="String"/>
<input type="hidden" id="data.details.critRange" name="data.details.critRange" value="20" data-dtype="Number"/>
<input type="hidden" id="system.details.sheetClass" name="system.details.sheetClass" value="Shaman" data-dtype="String"/>
<input type="hidden" id="system.details.critRange" name="system.details.critRange" value="20" data-dtype="Number"/>

{{!-- Sheet Header --}}
{{> modules/mcc-classes/templates/actor-partial-pc-mcc-header.html }}
Expand Down

0 comments on commit ceee775

Please sign in to comment.