Skip to content

Commit

Permalink
finished localization improvements: threat sheet and all "item" sheet…
Browse files Browse the repository at this point in the history
…s all sheet labels should not be fully localizable; added fatigue stat to SK templates for future use; now initializing stats for stymied and vulnerable conditions in prepare base data (for future use)
  • Loading branch information
gmmatt committed Jan 29, 2021
1 parent df03cb5 commit 0e5ccd2
Show file tree
Hide file tree
Showing 12 changed files with 58 additions and 82 deletions.
11 changes: 10 additions & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,16 @@
"other": "Other",
"spell": "Spell",
"miracle": "Miracle",
"psionicPower": "Psionic Power"
"psionicPower": "Psionic Power",
"abilities": "Abilities",
"implant": "Implant",
"eternityShard": "Eternity Shard",
"vehicle": "Vehicle",
"enhancement": "Enhancement",
"details": "Details",
"goodResult": "Good Result",
"outstandingResult": "Outstanding Result"

},
"itemSheetDescriptions": {
"perk": "Perk",
Expand Down
52 changes: 9 additions & 43 deletions module/torgeternityActor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,6 @@ export default class torgeternityActor extends Actor {

if (this._data.type === "stormknight") {
var skillset = this.data.data.skills;
// Set base attributes - because the defaults from template.json aren't showing up on all skills (not sure why)


// skillset.airVehicles.baseAttribute = "dexterity";
// skillset.alteration.baseAttribute = "mind";
// skillset.apportation.baseAttribute = "spirit";
// skillset.beastRiding.baseAttribute = "dexterity";
// skillset.computers.baseAttribute = "mind";
// skillset.conjuration.baseAttribute = "spirit";
// skillset.divination.baseAttribute = "mind";
// skillset.dodge.baseAttribute = "dexterity";
// skillset.energyWeapons.baseAttribute = "dexterity";
// skillset.evidenceAnalysis.baseAttribute = "mind";
// skillset.faith.baseAttribute = "spirit";
// skillset.find.baseAttribute = "mind";
// skillset.fireCombat.baseAttribute = "dexterity";
// skillset.firstAid.baseAttribute = "mind";
// skillset.heavyWeapons.baseAttribute = "dexterity";
// skillset.intimidation.baseAttribute = "spirit";
// skillset.kinesis.baseAttribute = "spirit";
// skillset.landVehicles.baseAttribute = "dexterity";
// skillset.language.baseAttribute = "mind";
// skillset.lockpicking.baseAttribute = "dexterity";
// skillset.maneuver.baseAttribute = "dexterity";
// skillset.medicine.baseAttribute = "mind";
// skillset.meleeWeapons.baseAttribute = "dexterity";
// skillset.missileWeapons.baseAttribute = "dexterity";
// skillset.persuasion.baseAttribute = "charisma";
// skillset.precognition.baseAttribute = "mind";
// skillset.profession.baseAttribute = "mind";
// skillset.reality.baseAttribute = "spirit";
// skillset.scholar.baseAttribute = "mind";
// skillset.science.baseAttribute = "mind";
// skillset.stealth.baseAttribute = "dexterity";
// skillset.streetwise.baseAttribute = "charisma";
// skillset.survival.baseAttribute = "mind";
// skillset.taunt.baseAttribute = "charisma";
// skillset.telepathy.baseAttribute = "charisma";
// skillset.tracking.baseAttribute = "mind";
// skillset.trick.baseAttribute = "mind";
// skillset.unarmedCombat.baseAttribute = "dexterity";
// skillset.waterVehicles.baseAttribute = "dexterity";
// skillset.willpower.baseAttribute = "spirit";

// Derive Skill values for Storm Knights
for (let [name, skill] of Object.entries(skillset)) {
Expand Down Expand Up @@ -97,6 +54,15 @@ export default class torgeternityActor extends Actor {
this.data.data.trickDefense = this.data.data.attributes.mind
};

// Set Stymied and Vulnerable Conditions
if (this.data.data.stymied) {}
else {
this.data.data.stymied = 0
};
if (this.data.data.vulnerable){}
else {
this.data.data.vulnerable = 0
}

};

Expand Down
2 changes: 1 addition & 1 deletion system.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Torg Eternity",
"description": "Unofficial Torg Eternity character sheet for Foundry VTT.",
"author": "Matt Ritchie",
"version": "0.90.4",
"version": "0.90.5",
"minimumCoreVersion": "0.7.8",
"compatibleCoreVersion": "0.7.9",
"templateVersion": 2,
Expand Down
3 changes: 2 additions & 1 deletion template.json
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@
"background": "",
"race": ""
},
"editstate": "inline"
"editstate": "inline",
"fatigue": "1"
},
"threat": {
"templates": [
Expand Down
2 changes: 1 addition & 1 deletion templates/sheets/enhancement-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<header class="sheet-header">
<img src="{{item.img}}" data-edit="img" title="{{item.name}}" height="64" width="64"/>
<h1><input name="name" type="text" value="{{item.name}}" placeholder="Enhancement Name" style="background-color:white;border-radius:10px;width:270px;font-family:'Palatino Linotype"/></h1>
<h1 style="font-size:26px;text-align:right;font-family:'Palatino Linotype'">Enhancement</h1>
<h1 style="font-size:26px;text-align:right;font-family:'Palatino Linotype'">{{localize "torgeternity.sheetLabels.enhancement"}}</h1>
</header>
<div class="sheet-content">
<table style="background-color:transparent;border: 0px solid black">
Expand Down
2 changes: 1 addition & 1 deletion templates/sheets/eternityshard-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1 style="font-size:26px;text-align:right;font-family:'Palatino Linotype'">{{lo
</td>
<td style="width:65%"> <!-- right column -->
<p class="item-data-label">
Purpose/Description/Powers/Restrictions
{{localize "torgeternity.sheetLabels.details"}}
</p>
<div class="item-description-textarea" style="padding:0px 0px 0px 10px;height:350px">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
Expand Down
6 changes: 3 additions & 3 deletions templates/sheets/miracle-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ <h1 style="font-size:36px;text-align:right;font-family:'Palatino Linotype'">{{lo
</td>
<td style="width:65%"> <!-- right column -->
<p class="item-data-label">
Description
{{localize "torgeternity.gear.description"}}
</p>
<div class="item-description-textarea" style="padding:0px 0px 0px 10px;height:200px">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
<p class="item-data-label">
Good Result
{{localize "torgeternity.sheetLabels.goodResult"}}
</p>
<div style="padding:0px 0px 0px 10px">
<textarea name="data.good" class="item-description-textarea" style="height:55px">{{data.good}}</textarea>
</div>
<p class="item-data-label">
Outstanding Result
{{localize "torgeternity.sheetLabels.outstandingResult"}}
</p>
<div style="padding:0px 0px 0px 10px">
<textarea name="data.outstanding" class="item-description-textarea" style="height:55px">{{data.outstanding}}</textarea>
Expand Down
6 changes: 3 additions & 3 deletions templates/sheets/psionicpower-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ <h1 style="font-size:26px;text-align:right;font-family:'Palatino Linotype'">{{lo
</td>
<td style="width:65%"> <!-- right column -->
<p class="item-data-label">
Description
{{localize "torgeternity.gear.description"}}
</p>
<div class="item-description-textarea" style="padding:0px 0px 0px 10px;height:200px">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
<p class="item-data-label">
Good Result
{{localize "torgeternity.sheetLabels.goodResult"}}
</p>
<div style="padding:0px 0px 0px 10px">
<textarea name="data.good" class="item-description-textarea" style="height:55px">{{data.good}}</textarea>
</div>
<p class="item-data-label">
Outstanding Result
{{localize "torgeternity.sheetLabels.outstandingResult"}}
</p>
<div style="padding:0px 0px 0px 10px">
<textarea name="data.outstanding" class="item-description-textarea" style="height:55px">{{data.outstanding}}</textarea>
Expand Down
2 changes: 1 addition & 1 deletion templates/sheets/specialability-rollable-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1 style="font-size:24px;text-align:right;font-family:'Palatino Linotype'">{{lo
</td>
<td style="width:65%"> <!-- right column -->
<p class="item-data-label">
Description
{{localize "torgeternity.gear.description"}}
</p>
<div style="padding:0px 0px 0px 10px;height:150px" class="item-description-textarea">
<textarea name="data.description" class="item-description-textarea" style="height:150px;border:none">{{data.description}}</textarea>
Expand Down
2 changes: 1 addition & 1 deletion templates/sheets/specialability-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h1 style="font-size:24px;text-align:right;font-family:'Palatino Linotype'">{{lo
</header>
<div class="sheet-content">
<p class="item-data-label">
Description
{{localize "torgeternity.gear.description"}}
</p>
<div style="padding:0px 0px 0px 10px">
<textarea name="data.description" class="item-description-textarea" style="height:150px;width:490px">{{data.description}}</textarea>
Expand Down
6 changes: 3 additions & 3 deletions templates/sheets/spell-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ <h1 style="font-size:36px;text-align:right;font-family:'Palatino Linotype'">{{lo
</td>
<td style="width:65%"> <!-- right column -->
<p class="item-data-label">
Description
{{localize "torgeternity.gear.description"}}
</p>
<div class="item-description-textarea" style="padding:0px 0px 0px 10px;height:200px">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
<p class="item-data-label">
Good Result
{{localize "torgeternity.sheetLabels.goodResult"}}
</p>
<div style="padding:0px 0px 0px 10px">
<textarea name="data.good" class="item-description-textarea" style="height:55px">{{data.good}}</textarea>
</div>
<p class="item-data-label">
Outstanding Result
{{localize "torgeternity.sheetLabels.outstandingResult"}}
</p>
<div style="padding:0px 0px 0px 10px">
<textarea name="data.outstanding" class="item-description-textarea" style="height:55px">{{data.outstanding}}</textarea>
Expand Down
Loading

0 comments on commit 0e5ccd2

Please sign in to comment.