Minor fixes
This commit is contained in:
parent
30ef811bbf
commit
8839236214
BIN
images/icons/icon_vehicle_mobilitymodule.webp
Normal file
BIN
images/icons/icon_vehicle_mobilitymodule.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
BIN
images/icons/icon_vehicle_propulsionmodule.webp
Normal file
BIN
images/icons/icon_vehicle_propulsionmodule.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
BIN
images/icons/icon_vehicule_combatmodule.webp
Normal file
BIN
images/icons/icon_vehicule_combatmodule.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
BIN
images/icons/icon_vehicule_hull.webp
Normal file
BIN
images/icons/icon_vehicule_hull.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
images/icons/icon_vehicule_module.webp
Normal file
BIN
images/icons/icon_vehicule_module.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
BIN
images/icons/icon_vehicule_powercore.webp
Normal file
BIN
images/icons/icon_vehicule_powercore.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
@ -160,6 +160,7 @@ export class PegasusActorSheet extends ActorSheet {
|
|||||||
const li = $(ev.currentTarget).parents(".item");
|
const li = $(ev.currentTarget).parents(".item");
|
||||||
let itemId = li.data("item-id");
|
let itemId = li.data("item-id");
|
||||||
this.actor.updatePerkStatus( itemId, ev.currentTarget.value)
|
this.actor.updatePerkStatus( itemId, ev.currentTarget.value)
|
||||||
|
this.render()
|
||||||
});
|
});
|
||||||
|
|
||||||
html.find('.power-cost-spent').change(ev => {
|
html.find('.power-cost-spent').change(ev => {
|
||||||
|
@ -858,7 +858,8 @@ export class PegasusActor extends Actor {
|
|||||||
|
|
||||||
if (item.data.data.status == status) return;// Ensure we are really changing the status
|
if (item.data.data.status == status) return;// Ensure we are really changing the status
|
||||||
if (this.checkNoPerksAllowed() ) {
|
if (this.checkNoPerksAllowed() ) {
|
||||||
ChatMessage( {content: "No perks activation allowed due to effect !"})
|
await this.updateEmbeddedDocuments('Item', [{ _id: item.id, 'data.status': "ready" }])
|
||||||
|
ChatMessage.create( {content: "No perks activation allowed due to effect !"})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -908,7 +909,7 @@ export class PegasusActor extends Actor {
|
|||||||
}
|
}
|
||||||
this.disableWeaverPerk(item)
|
this.disableWeaverPerk(item)
|
||||||
PegasusUtility.createChatWithRollMode(item.name, {
|
PegasusUtility.createChatWithRollMode(item.name, {
|
||||||
content: await renderTemplate(`systems/fvtt-pegasus-rpg/templates/chat-perk-ready.html`, { name: this.name, perk: item })
|
content: await renderTemplate(`systems/fvtt-pegasus-rpg/templates/chat-perk-ready.html`, { name: this.name, perk: duplicate(item) })
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (status == "activated") {
|
if (status == "activated") {
|
||||||
@ -954,7 +955,7 @@ export class PegasusActor extends Actor {
|
|||||||
await this.update({ 'data.nrg': nrg })
|
await this.update({ 'data.nrg': nrg })
|
||||||
}
|
}
|
||||||
PegasusUtility.createChatWithRollMode(item.name, {
|
PegasusUtility.createChatWithRollMode(item.name, {
|
||||||
content: await renderTemplate(`systems/fvtt-pegasus-rpg/templates/chat-perk-activated.html`, { name: this.name, perk: item })
|
content: await renderTemplate(`systems/fvtt-pegasus-rpg/templates/chat-perk-activated.html`, { name: this.name, perk: duplicate(item) })
|
||||||
})
|
})
|
||||||
this.enableWeaverPerk(item)
|
this.enableWeaverPerk(item)
|
||||||
}
|
}
|
||||||
@ -1387,7 +1388,7 @@ export class PegasusActor extends Actor {
|
|||||||
if (effect.data.effectstatlevel) {
|
if (effect.data.effectstatlevel) {
|
||||||
effect.data.effectlevel = this.data.data.statistics[effect.data.effectstat].value
|
effect.data.effectlevel = this.data.data.statistics[effect.data.effectstat].value
|
||||||
}
|
}
|
||||||
if (this.getTraumaState() == "none") {
|
if (this.getTraumaState() == "none" && !this.checkNoBonusDice()) {
|
||||||
rollData.effectsList.push({ label: effect.name, type: "effect", applied: false, effect: effect, value: effect.data.effectlevel })
|
rollData.effectsList.push({ label: effect.name, type: "effect", applied: false, effect: effect, value: effect.data.effectlevel })
|
||||||
} else {
|
} else {
|
||||||
if (!effect.data.bonusdice) { // Do not push bonus dice effect when TraumaState is activated
|
if (!effect.data.bonusdice) { // Do not push bonus dice effect when TraumaState is activated
|
||||||
|
@ -17,6 +17,13 @@ export const defaultItemImg = {
|
|||||||
money: "systems/fvtt-pegasus-rpg/images/icons/icon_money.webp",
|
money: "systems/fvtt-pegasus-rpg/images/icons/icon_money.webp",
|
||||||
vice: "systems/fvtt-pegasus-rpg/images/icons/icon_vice.webp",
|
vice: "systems/fvtt-pegasus-rpg/images/icons/icon_vice.webp",
|
||||||
virtue: "systems/fvtt-pegasus-rpg/images/icons/icon_virtue.webp",
|
virtue: "systems/fvtt-pegasus-rpg/images/icons/icon_virtue.webp",
|
||||||
|
vehiclehull:"systems/fvtt-pegasus-rpg/images/icons/icon_vehicule_hull.webp",
|
||||||
|
powercoremodule:"systems/fvtt-pegasus-rpg/images/icons/icon_vehicule_powercore.webp",
|
||||||
|
mobilitymodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicle_mobilitymodule.webp",
|
||||||
|
combatmodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicule_combatmodule.webp",
|
||||||
|
propulsionmodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicle_propulsionmodule.webp",
|
||||||
|
vehiclemodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicule_module.webp",
|
||||||
|
vehicleweaponmodule: "systems/fvtt-pegasus-rpg/images/icons/icon_vehicule_combatmodule.webp"
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -35,7 +35,7 @@ export class PegasusUtility {
|
|||||||
PegasusCommands.init();
|
PegasusCommands.init();
|
||||||
|
|
||||||
Handlebars.registerHelper('count', function (list) {
|
Handlebars.registerHelper('count', function (list) {
|
||||||
return list.length;
|
return (list) ? list.length : 0;
|
||||||
})
|
})
|
||||||
Handlebars.registerHelper('includes', function (array, val) {
|
Handlebars.registerHelper('includes', function (array, val) {
|
||||||
return array.includes(val);
|
return array.includes(val);
|
||||||
@ -443,7 +443,8 @@ export class PegasusUtility {
|
|||||||
'systems/fvtt-pegasus-rpg/templates/partial-actor-status.html',
|
'systems/fvtt-pegasus-rpg/templates/partial-actor-status.html',
|
||||||
'systems/fvtt-pegasus-rpg/templates/partial-item-nav.html',
|
'systems/fvtt-pegasus-rpg/templates/partial-item-nav.html',
|
||||||
'systems/fvtt-pegasus-rpg/templates/partial-item-description.html',
|
'systems/fvtt-pegasus-rpg/templates/partial-item-description.html',
|
||||||
'systems/fvtt-pegasus-rpg/templates/partial-actor-equipment.html'
|
'systems/fvtt-pegasus-rpg/templates/partial-actor-equipment.html',
|
||||||
|
"systems/fvtt-pegasus-rpg/templates/partial-options-vehicle-speed.html"
|
||||||
]
|
]
|
||||||
return loadTemplates(templatePaths);
|
return loadTemplates(templatePaths);
|
||||||
}
|
}
|
||||||
|
@ -180,9 +180,9 @@
|
|||||||
"styles": [
|
"styles": [
|
||||||
"styles/simple.css"
|
"styles/simple.css"
|
||||||
],
|
],
|
||||||
"templateVersion": 100,
|
"templateVersion": 103,
|
||||||
"title": "Pegasus RPG",
|
"title": "Pegasus RPG",
|
||||||
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
|
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
|
||||||
"version": "0.6.10",
|
"version": "0.6.13",
|
||||||
"background" : "./images/ui/pegasus_welcome_page.webp"
|
"background" : "./images/ui/pegasus_welcome_page.webp"
|
||||||
}
|
}
|
||||||
|
@ -339,9 +339,9 @@
|
|||||||
"powercoremodule",
|
"powercoremodule",
|
||||||
"mobilitymodule",
|
"mobilitymodule",
|
||||||
"combatmodule",
|
"combatmodule",
|
||||||
|
"propulsionmodule",
|
||||||
"vehiclemodule",
|
"vehiclemodule",
|
||||||
"vehicleweaponmodule",
|
"vehicleweaponmodule"
|
||||||
"propulsionmodule"
|
|
||||||
],
|
],
|
||||||
"effect": {
|
"effect": {
|
||||||
"type": "",
|
"type": "",
|
||||||
@ -512,6 +512,7 @@
|
|||||||
"action": "",
|
"action": "",
|
||||||
"type": "",
|
"type": "",
|
||||||
"powersource": "",
|
"powersource": "",
|
||||||
|
"powerlevel": 0,
|
||||||
"effects": "",
|
"effects": "",
|
||||||
"activated": false,
|
"activated": false,
|
||||||
"purchasedeffects": "",
|
"purchasedeffects": "",
|
||||||
@ -600,12 +601,15 @@
|
|||||||
"hulltype": "",
|
"hulltype": "",
|
||||||
"hr": 0,
|
"hr": 0,
|
||||||
"man": 0,
|
"man": 0,
|
||||||
"vms": 0
|
"vms": 0,
|
||||||
|
"cost": 0
|
||||||
},
|
},
|
||||||
"powercoremodule": {
|
"powercoremodule": {
|
||||||
"coretype": "",
|
"coretype": "",
|
||||||
"pc": 0,
|
"pc": 0,
|
||||||
"nrg": 0
|
"nrg": 0,
|
||||||
|
"cost": 0,
|
||||||
|
"space": 0
|
||||||
},
|
},
|
||||||
"mobilitymodule": {
|
"mobilitymodule": {
|
||||||
"vehiclecategory": "",
|
"vehiclecategory": "",
|
||||||
@ -614,15 +618,21 @@
|
|||||||
"ts_f": "",
|
"ts_f": "",
|
||||||
"ts_s": "",
|
"ts_s": "",
|
||||||
"ts_r": "",
|
"ts_r": "",
|
||||||
"man": ""
|
"man": "",
|
||||||
|
"cost": 0,
|
||||||
|
"space": 0
|
||||||
},
|
},
|
||||||
"propulsionmodule": {
|
"propulsionmodule": {
|
||||||
"quality": "",
|
"quality": "",
|
||||||
"ad": ""
|
"ad": "",
|
||||||
|
"cost": 0,
|
||||||
|
"space": 0
|
||||||
},
|
},
|
||||||
"combatmodule": {
|
"combatmodule": {
|
||||||
"combattype": "",
|
"combattype": "",
|
||||||
"fc": ""
|
"fc": "",
|
||||||
|
"cost": 0,
|
||||||
|
"space": 0
|
||||||
},
|
},
|
||||||
"vehiclemodule": {
|
"vehiclemodule": {
|
||||||
"category": "",
|
"category": "",
|
||||||
@ -636,7 +646,9 @@
|
|||||||
"shielddicevalue": "",
|
"shielddicevalue": "",
|
||||||
"securitydicevalue": "",
|
"securitydicevalue": "",
|
||||||
"range": "",
|
"range": "",
|
||||||
"idr": ""
|
"idr": "",
|
||||||
|
"cost": 0,
|
||||||
|
"space": 0
|
||||||
},
|
},
|
||||||
"vehicleweaponmodule": {
|
"vehicleweaponmodule": {
|
||||||
"location": "",
|
"location": "",
|
||||||
@ -651,7 +663,8 @@
|
|||||||
"range": "",
|
"range": "",
|
||||||
"turret": "",
|
"turret": "",
|
||||||
"linkedweapon": "",
|
"linkedweapon": "",
|
||||||
"idr": ""
|
"idr": "",
|
||||||
|
"cost": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -430,6 +430,9 @@
|
|||||||
<span class="item-field-label-medium">
|
<span class="item-field-label-medium">
|
||||||
<label class="short-label">NRG Spent</label>
|
<label class="short-label">NRG Spent</label>
|
||||||
</span>
|
</span>
|
||||||
|
<span class="item-field-label-medium">
|
||||||
|
<label class="short-label">PL</label>
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{{#each powers as |power key|}}
|
{{#each powers as |power key|}}
|
||||||
@ -469,6 +472,8 @@
|
|||||||
<input type="text" class="padd-right input-numeric-short power-cost-spent"
|
<input type="text" class="padd-right input-numeric-short power-cost-spent"
|
||||||
value="{{power.data.costspent}}" data-dtype="Number" />
|
value="{{power.data.costspent}}" data-dtype="Number" />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
<span class="item-field-label-medium">{{power.data.powerlevel}}</span>
|
||||||
|
|
||||||
<div class="item-filler"> </div>
|
<div class="item-filler"> </div>
|
||||||
<div class="item-controls item-controls-fixed">
|
<div class="item-controls item-controls-fixed">
|
||||||
|
@ -36,10 +36,9 @@
|
|||||||
|
|
||||||
{{#if weaponName}}
|
{{#if weaponName}}
|
||||||
<li>Weapon : {{weaponName}}</li>
|
<li>Weapon : {{weaponName}}</li>
|
||||||
Damage Type: Piercing 1
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if weapon}}
|
{{#if weapon}}
|
||||||
<li>Damage type : {{weapon.data.damagetype}} {{weapon.data.damagetypelevel}}</li>
|
<li>Damage type : {{weapon.weapon.data.damagetype}} {{weapon.weapon.data.damagetypelevel}}</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if isResistance}}
|
{{#if isResistance}}
|
||||||
|
@ -34,6 +34,15 @@
|
|||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="flexrow"><label class="generic-label">Space</label>
|
||||||
|
<input type="text" class="" name="data.space" value="{{data.space}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||||
|
<input type="text" class="" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<li class="flexrow"><label class="generic-label">Ignore health penalty?</label>
|
<li class="flexrow"><label class="generic-label">Ignore health penalty?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.ignorehealthpenalty" {{checked data.ignorehealthpenalty}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.ignorehealthpenalty" {{checked data.ignorehealthpenalty}}/></label>
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow"><label class="generic-label">Is this possible ?</label>
|
<li class="flexrow"><label class="generic-label">Display Text when targetted</label>
|
||||||
<input type="text" class="padd-right" name="data.isthispossible" value="{{data.isthispossible}}" data-dtype="String"/>
|
<input type="text" class="padd-right" name="data.isthispossible" value="{{data.isthispossible}}" data-dtype="String"/>
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow"><label class="generic-label">Mental disruption ?</label>
|
<li class="flexrow"><label class="generic-label">Mental disruption ?</label>
|
||||||
@ -61,7 +61,7 @@
|
|||||||
<li class="flexrow"><label class="generic-label">No perks allowed ?</label>
|
<li class="flexrow"><label class="generic-label">No perks allowed ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.noperksallowed" {{checked data.noperksallowed}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.noperksallowed" {{checked data.noperksallowed}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Effect Level is a Stat?</label>
|
<li class="flexrow"><label class="generic-label">Effect Level is a Stat?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.effectstatlevel" {{checked data.effectstatlevel}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.effectstatlevel" {{checked data.effectstatlevel}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
@ -84,6 +84,13 @@
|
|||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="flexrow"><label class="generic-label">Space</label>
|
||||||
|
<input type="text" class="" name="data.space" value="{{data.space}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||||
|
<input type="text" class="" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -58,6 +58,11 @@
|
|||||||
<input type="text" class="input-numeric-short padd-right" name="data.costspent" value="{{data.costspent}}"
|
<input type="text" class="input-numeric-short padd-right" name="data.costspent" value="{{data.costspent}}"
|
||||||
data-dtype="Number" />
|
data-dtype="Number" />
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="flexrow"><label class="generic-label">Power Level</label>
|
||||||
|
<input type="text" class="input-numeric-short padd-right" name="data.powerlevel" value="{{data.powerlevel}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Range</label>
|
<li class="flexrow"><label class="generic-label">Range</label>
|
||||||
<select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}"
|
<select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}"
|
||||||
data-dtype="String">
|
data-dtype="String">
|
||||||
|
@ -37,6 +37,13 @@
|
|||||||
<li class="flexrow"><label class="generic-label">NRG</label>
|
<li class="flexrow"><label class="generic-label">NRG</label>
|
||||||
<input type="text" class="" name="data.nrg" value="{{data.nrg}}" data-dtype="Number"/>
|
<input type="text" class="" name="data.nrg" value="{{data.nrg}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="flexrow"><label class="generic-label">Space</label>
|
||||||
|
<input type="text" class="" name="data.space" value="{{data.space}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||||
|
<input type="text" class="" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -31,7 +31,15 @@
|
|||||||
{{{optionsDiceList}}}
|
{{{optionsDiceList}}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="flexrow"><label class="generic-label">Space</label>
|
||||||
|
<input type="text" class="" name="data.space" value="{{data.space}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||||
|
<input type="text" class="" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -108,6 +108,13 @@
|
|||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="flexrow"><label class="generic-label">Space</label>
|
||||||
|
<input type="text" class="" name="data.space" value="{{data.space}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||||
|
<input type="text" class="" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -31,10 +31,6 @@
|
|||||||
<input type="text" class="" name="data.size" value="{{data.size}}" data-dtype="Number"/>
|
<input type="text" class="" name="data.size" value="{{data.size}}" data-dtype="Number"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Space</label>
|
|
||||||
<input type="text" class="" name="data.space" value="{{data.space}}" data-dtype="Number"/>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Activated ?</label>
|
<li class="flexrow"><label class="generic-label">Activated ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.activated" {{checked data.activated}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.activated" {{checked data.activated}}/></label>
|
||||||
</li>
|
</li>
|
||||||
@ -124,6 +120,14 @@
|
|||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="flexrow"><label class="generic-label">Space</label>
|
||||||
|
<input type="text" class="" name="data.space" value="{{data.space}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="flexrow"><label class="generic-label">Cost</label>
|
||||||
|
<input type="text" class="" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user