Initial import
Before Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 14 KiB |
@ -1,64 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="26.240078"
|
||||
height="24.137722"
|
||||
viewBox="0 0 82.000206 75.430344"
|
||||
version="1.1"
|
||||
id="svg3"
|
||||
sodipodi:docname="unlocked.svg"
|
||||
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)">
|
||||
<metadata
|
||||
id="metadata9">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs7" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1818"
|
||||
inkscape:window-height="1345"
|
||||
id="namedview5"
|
||||
showgrid="false"
|
||||
inkscape:zoom="9.407583"
|
||||
inkscape:cx="32.22484"
|
||||
inkscape:cy="24.325892"
|
||||
inkscape:window-x="630"
|
||||
inkscape:window-y="276"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg3"
|
||||
inkscape:document-rotation="0"
|
||||
units="px"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0" />
|
||||
<path
|
||||
id="Sélection #1"
|
||||
fill="none"
|
||||
stroke="#000000"
|
||||
stroke-width="0.430321"
|
||||
d="m 41.525985,32.183078 c -0.757365,-3.180073 0.619662,-10.938762 1.600794,-14.200596 1.097319,-3.636213 2.990736,-7.836147 5.422046,-10.7580268 1.36842,-1.639523 3.63191,-3.85998 5.45647,-4.957299 2.39689,-1.44587897 5.38332,-2.17312097 8.1761,-2.03541897 9.56174,0.460444 15.50017,9.83713977 17.88845,18.18106577 1.04138,3.636213 1.32539,5.723271 1.4717,9.467064 0.0645,0.933797 0.50347,2.891758 0,3.614697 -0.667,0.890765 -2.86164,0.688514 -3.86859,0.688514 0,-7.620987 -1.35551,-15.23767 -5.99007,-21.516054 -2.30652,-3.1198278 -5.46077,-5.8308508 -9.50149,-6.0072828 -4.9573,-0.21516 -8.35253,2.543198 -11.09798,6.4376038 -4.39788,6.239655 -5.684541,13.615359 -5.684541,21.085733 0,0 4.303211,0 4.303211,0 0,0 0,43.032105 0,43.032105 0,0 -49.4869245,0 -49.4869245,0 0,0 0,-43.032105 0,-43.032105 0,0 41.3108245,0 41.3108245,0 z"
|
||||
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:0.5" />
|
||||
</svg>
|
Before Width: | Height: | Size: 2.6 KiB |
@ -60,6 +60,7 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
editable: this.isEditable,
|
||||
cssClass: this.isEditable ? "editable" : "locked",
|
||||
optionsDiceList: PegasusUtility.getOptionsDiceList(),
|
||||
optionsStatusList: PegasusUtility.getOptionsStatusList(),
|
||||
data: itemData,
|
||||
limited: this.object.limited,
|
||||
options: this.options,
|
||||
|
@ -55,9 +55,15 @@ export class PegasusUtility {
|
||||
this.optionsDiceList = optionsDiceList;
|
||||
this.optionsLevel = optionsLevel;
|
||||
|
||||
this.optionsStatusList = '<option value="notapplicable">Not applicable</option><option value="health">Health</option><option value="nrg">NRG</option><option value="delirium">Delirium</option>';
|
||||
|
||||
console.log("Defautl dice List", diceList, diceFoundryList);
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static getOptionsStatusList() {
|
||||
return this.optionsStatusList;
|
||||
}
|
||||
/* -------------------------------------------- */
|
||||
static getOptionsDiceList() {
|
||||
return this.optionsDiceList;
|
||||
@ -125,6 +131,7 @@ export class PegasusUtility {
|
||||
'systems/fvtt-pegasus-rpg/templates/partial-roll-common-dices.html',
|
||||
'systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html',
|
||||
'systems/fvtt-pegasus-rpg/templates/partial-options-level.html',
|
||||
'systems/fvtt-pegasus-rpg/templates/partial-options-range.html',
|
||||
'systems/fvtt-pegasus-rpg/templates/partial-options-equipment-types.html'
|
||||
]
|
||||
return loadTemplates(templatePaths);
|
||||
|
@ -1162,8 +1162,8 @@ ul, li {
|
||||
|
||||
#logo {
|
||||
content : url(../images/ui/pegasus_logo_v1.webp);
|
||||
width: 110px;
|
||||
height: 70px;
|
||||
width: 100px;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
.dice-cell {
|
||||
|
@ -40,9 +40,9 @@
|
||||
"styles": [
|
||||
"styles/simple.css"
|
||||
],
|
||||
"templateVersion": 6,
|
||||
"templateVersion": 9,
|
||||
"title": "Pegasus RPG",
|
||||
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
|
||||
"version": "0.0.6",
|
||||
"background" : ""
|
||||
"version": "0.0.9",
|
||||
"background" : "./images/ui/pegasus_welcome_page.webp"
|
||||
}
|
@ -29,61 +29,61 @@
|
||||
"statistics": {
|
||||
"agi":{
|
||||
"label": "Agility",
|
||||
"abbrev": "agi",
|
||||
"abbrev": "AGI",
|
||||
"level": 1,
|
||||
"mod": 0
|
||||
},
|
||||
"mnd":{
|
||||
"label": "Mind",
|
||||
"abbrev": "mnd",
|
||||
"abbrev": "MND",
|
||||
"level": 1,
|
||||
"mod": 0
|
||||
},
|
||||
"soc":{
|
||||
"label": "Social",
|
||||
"abbrev": "soc",
|
||||
"abbrev": "SOC",
|
||||
"level": 1,
|
||||
"mod": 0
|
||||
},
|
||||
"str":{
|
||||
"label": "Strength",
|
||||
"abbrev": "str",
|
||||
"abbrev": "STR",
|
||||
"level": 1,
|
||||
"mod": 0
|
||||
},
|
||||
"phy":{
|
||||
"label": "Physique",
|
||||
"abbrev": "phy",
|
||||
"abbrev": "PHY",
|
||||
"level": 1,
|
||||
"mod": 0
|
||||
},
|
||||
"com":{
|
||||
"label": "Combat",
|
||||
"abbrev": "com",
|
||||
"abbrev": "COM",
|
||||
"level": 1,
|
||||
"mod": 0
|
||||
},
|
||||
"def":{
|
||||
"label": "Defence",
|
||||
"abbrev": "def",
|
||||
"abbrev": "DEF",
|
||||
"level": 1,
|
||||
"mod": 0
|
||||
},
|
||||
"stl":{
|
||||
"label": "Stealth",
|
||||
"abbrev": "stl",
|
||||
"abbrev": "STL",
|
||||
"level": 1,
|
||||
"mod": 0
|
||||
},
|
||||
"per":{
|
||||
"label": "Perception",
|
||||
"abbrev": "per",
|
||||
"abbrev": "PER",
|
||||
"level": 1,
|
||||
"mod": 0
|
||||
},
|
||||
"foc":{
|
||||
"label": "Focus",
|
||||
"abbrev": "foc",
|
||||
"abbrev": "FOC",
|
||||
"level": 1,
|
||||
"mod": 0
|
||||
}
|
||||
@ -142,6 +142,16 @@
|
||||
"statistics": ""
|
||||
},
|
||||
"ability": {
|
||||
"affectedstat": "",
|
||||
"statmodifier": 0,
|
||||
"statlevelincrease": 0,
|
||||
"bonusdice": 0,
|
||||
"otherdice": 0,
|
||||
"statusaffected": "",
|
||||
"statusmodifier": 0,
|
||||
"powergained": 0,
|
||||
"specgained": "",
|
||||
"aoe": "",
|
||||
"description": ""
|
||||
},
|
||||
"specialisation": {
|
||||
@ -154,6 +164,17 @@
|
||||
"active": false,
|
||||
"roundcount": 0,
|
||||
"nbuse": "",
|
||||
"gainstatdice": "",
|
||||
"gainbonusdice": 0,
|
||||
"gainotherdice": 0,
|
||||
"specialisation": "",
|
||||
"range": "",
|
||||
"aoe": "",
|
||||
"nbtargets": 0,
|
||||
"nrgcost": 0,
|
||||
"effectscaused": "",
|
||||
"stataffected": "",
|
||||
"targetresists": "",
|
||||
"description": "",
|
||||
"upgrades": "",
|
||||
"rules": ""
|
||||
@ -201,6 +222,7 @@
|
||||
"cost": 0,
|
||||
"weight": 0,
|
||||
"idr": "",
|
||||
"range": "",
|
||||
"equipped": false,
|
||||
"description": ""
|
||||
}
|
||||
|
@ -36,7 +36,7 @@
|
||||
<ul>
|
||||
{{#each data.statistics as |stat key|}}
|
||||
<li class="item flexrow list-item" data-attr-key="{{key}}">
|
||||
<span class="stat-label flexrow" name="{{key}}"><h4><a class="roll-stat" data-stat-key="{{key}}"">{{stat.label}}</a></h4></span>
|
||||
<span class="stat-label flexrow" name="{{key}}"><h4><a class="roll-stat" data-stat-key="{{key}}"">{{stat.label}} [{{stat.abbrev}}]</a></h4></span>
|
||||
<select class="carac-base flexrow" type="text" name="data.statistics.{{key}}.value" value="{{stat.value}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
|
||||
{{#select stat.value}}
|
||||
{{{@root.optionsDiceList}}}
|
||||
|
@ -9,12 +9,83 @@
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
<div class="tab" data-group="primary">
|
||||
<ul>
|
||||
<li class="flexrow"><label class="generic-label">Affected stat</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.affectedstat" value="{{data.affectedstat}}" data-dtype="String">
|
||||
{{#select data.affectedstat}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true mr=true}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Stat modifier</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.statmodifier" value="{{data.statmodifier}}" data-dtype="Number">
|
||||
{{#select data.statmodifier}}
|
||||
<option value="-1">-1</option>
|
||||
<option value="0">0</option>
|
||||
<option value="+1">+1</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Stat level increase</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.statlevelincrease" value="{{data.statlevelincrease}}" data-dtype="Number">
|
||||
{{#select data.statlevelincrease}}
|
||||
<option value="0">0</option>
|
||||
<option value="+1">+1</option>
|
||||
<option value="+2">+2</option>
|
||||
<option value="+3">+3</option>
|
||||
<option value="+4">+4</option>
|
||||
<option value="+5">+5</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Bonus dice</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.bonusdice" value="{{data.bonusdice}}" data-dtype="Number">
|
||||
{{#select data.bonusdice}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Other dice</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.otherdice" value="{{data.otherdice}}" data-dtype="Number">
|
||||
{{#select data.otherdice}}
|
||||
{{{optionsDiceList}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Affected status</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.statusaffected" value="{{data.statusaffected}}" data-dtype="String">
|
||||
{{#select data.statusaffected}}
|
||||
{{{optionsStatusList}}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Status modifier</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.statusmodifier" value="{{data.statusmodifier}}" data-dtype="Number">
|
||||
{{#select data.statusmodifier}}
|
||||
<option value="-1">-1</option>
|
||||
<option value="0">0</option>
|
||||
<option value="+1">+1</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Power Gained</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.powergained" value="{{data.powergained}}" data-dtype="Number"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Specialisation Gained</label>
|
||||
<input type="text" class="padd-right" name="data.specgained" value="{{data.specgained}}" data-dtype="String"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">AoE</label>
|
||||
<input type="text" class="padd-right" name="data.aoe" value="{{data.aoe}}" data-dtype="String"/>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab" data-group="primary">
|
||||
<label class="generic-label">Description</label>
|
||||
<div class="small-editor item-text-long-line">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
</form>
|
||||
|
@ -17,27 +17,72 @@
|
||||
<li class="flexrow"><label class="generic-label">Level</label>
|
||||
<input type="text" class="input-numeric-short padd-right" name="data.level" value="{{data.level}}" data-dtype="Number"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Number of use during activation</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.nbuse" value="{{data.nbuse}}" data-dtype="Number">
|
||||
{{#select data.nbuse}}
|
||||
<option value="unlimited">Unlimited</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Remaining round</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.roundcount" value="{{data.roundcount}}" data-dtype="Number">
|
||||
{{#select data.roundcount}}
|
||||
<option value="0">0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="3">Ready</option>
|
||||
<option value="2">Activated</option>
|
||||
<option value="1">2 Rounds left</option>
|
||||
<option value="0">1 Round left</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Number of use during activation</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.nbuse" value="{{data.nbuse}}" data-dtype="Number">
|
||||
{{#select data.nbuse}}
|
||||
<option value="perkduration">For Duration of Perk</option>
|
||||
<option value="next1action">Next 1 Stated Action</option>
|
||||
<option value="next2action">Next 2 Stated Action</option>
|
||||
<option value="next3action">Next 3 Stated Action</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Gain Stat Dice</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.gainstatdice" value="{{data.gainstatdice}}" data-dtype="String">
|
||||
{{#select data.gainstatdice}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Gain Bonus Dice</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.gainbonusdice" value="{{data.gainbonusdice}}" data-dtype="String">
|
||||
{{#select data.gainbonusdice}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Gain Other Dice</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.gainotherdice" value="{{data.gainotherdice}}" data-dtype="String">
|
||||
{{#select data.gainotherdice}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=true}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Specialisation Affected</label>
|
||||
<input type="text" class="padd-right" name="data.specialisation" value="{{data.specialisation}}" data-dtype="String"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Range</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}" data-dtype="String">
|
||||
{{#select data.range}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">AoE</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.aoe" value="{{data.aoe}}" data-dtype="String">
|
||||
{{#select data.aoe}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Quantity of Targets</label>
|
||||
<input type="text" class="padd-right" name="data.nbtargets" value="{{data.nbtargets}}" data-dtype="Number"/>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">NRG Cost</label>
|
||||
<input type="text" class="padd-right" name="data.nrgcost" value="{{data.nrgcost}}" data-dtype="Number"/>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<label class="generic-label">Description</label>
|
||||
<div class="small-editor item-text-long-line">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
|
@ -25,6 +25,13 @@
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow"><label class="generic-label">Range</label>
|
||||
<select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}" data-dtype="String">
|
||||
{{#select data.range}}
|
||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
|
||||
<li class="flexrow"><label class="generic-label">Equipped ?</label>
|
||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.equipped" {{checked data.equipped}}/></label>
|
||||
|
@ -1,3 +1,6 @@
|
||||
{{#if notapplicable}}
|
||||
<option value="notapplicable">Not applicable</option>
|
||||
{{/if}}
|
||||
<option value="0">0</option>
|
||||
<option value="1">d4</option>
|
||||
<option value="2">d6</option>
|
||||
|
@ -1,3 +1,6 @@
|
||||
{{#if notapplicable}}
|
||||
<option value="notapplicable">Not applicable</option>
|
||||
{{/if}}
|
||||
<option value="agi">AGI</option>
|
||||
<option value="mnd">MND</option>
|
||||
<option value="soc">SOC</option>
|
||||
@ -8,3 +11,6 @@
|
||||
<option value="stl">STL</option>
|
||||
<option value="per">PER</option>
|
||||
<option value="foc">FOC</option>
|
||||
{{#if mr}}
|
||||
<option value="mr">MR</option>
|
||||
{{/if}}
|
||||
|