Compare commits
No commits in common. "master" and "fvtt-crucible-rpg-v10.0.10" have entirely different histories.
master
...
fvtt-cruci
@ -1,4 +0,0 @@
|
|||||||
[Dolphin]
|
|
||||||
Timestamp=2022,9,12,23,3,3.4699999999999998
|
|
||||||
Version=4
|
|
||||||
VisibleRoles=Details_text,Details_size,Details_modificationtime,Details_creationtime,CustomizedDetails
|
|
@ -1,5 +1,6 @@
|
|||||||
[Dolphin]
|
[Dolphin]
|
||||||
SortOrder=1
|
SortOrder=1
|
||||||
Timestamp=2022,9,12,23,4,32.409
|
Timestamp=2022,7,27,18,56,49.607
|
||||||
Version=4
|
Version=4
|
||||||
|
ViewMode=1
|
||||||
VisibleRoles=Details_text,Details_size,Details_modificationtime,Details_creationtime,CustomizedDetails
|
VisibleRoles=Details_text,Details_size,Details_modificationtime,Details_creationtime,CustomizedDetails
|
||||||
|
@ -158,9 +158,6 @@ export class CrucibleActorSheet extends ActorSheet {
|
|||||||
html.find('.roll-shield-die').click((event) => {
|
html.find('.roll-shield-die').click((event) => {
|
||||||
this.actor.rollShieldDie()
|
this.actor.rollShieldDie()
|
||||||
});
|
});
|
||||||
html.find('.roll-target-die').click((event) => {
|
|
||||||
this.actor.rollDefenseRanged()
|
|
||||||
});
|
|
||||||
|
|
||||||
html.find('.roll-save').click((event) => {
|
html.find('.roll-save').click((event) => {
|
||||||
const saveKey = $(event.currentTarget).data("save-key")
|
const saveKey = $(event.currentTarget).data("save-key")
|
||||||
|
@ -63,7 +63,6 @@ export class CrucibleActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
computeHitPoints() {
|
computeHitPoints() {
|
||||||
if (this.type == "character") {
|
|
||||||
let hp = duplicate(this.system.secondary.hp)
|
let hp = duplicate(this.system.secondary.hp)
|
||||||
let max = (this.system.abilities.str.value + this.system.abilities.con.value) * 6
|
let max = (this.system.abilities.str.value + this.system.abilities.con.value) * 6
|
||||||
if (max != hp.max || hp.value > max) {
|
if (max != hp.max || hp.value > max) {
|
||||||
@ -72,10 +71,8 @@ export class CrucibleActor extends Actor {
|
|||||||
this.update({ 'system.secondary.hp': hp })
|
this.update({ 'system.secondary.hp': hp })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
computeEffortPoints() {
|
computeEffortPoints() {
|
||||||
if (this.type == "character") {
|
|
||||||
let effort = duplicate(this.system.secondary.effort)
|
let effort = duplicate(this.system.secondary.effort)
|
||||||
let max = (this.system.abilities.con.value + this.system.abilities.int.value) * 6
|
let max = (this.system.abilities.con.value + this.system.abilities.int.value) * 6
|
||||||
if (max != effort.max || effort.value > max) {
|
if (max != effort.max || effort.value > max) {
|
||||||
@ -84,7 +81,6 @@ export class CrucibleActor extends Actor {
|
|||||||
this.update({ 'system.secondary.effort': effort })
|
this.update({ 'system.secondary.effort': effort })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
prepareDerivedData() {
|
prepareDerivedData() {
|
||||||
@ -691,12 +687,10 @@ export class CrucibleActor extends Actor {
|
|||||||
let rollData = this.getCommonRollData()
|
let rollData = this.getCommonRollData()
|
||||||
rollData.defenderTokenId = undefined // Cleanup
|
rollData.defenderTokenId = undefined // Cleanup
|
||||||
rollData.mode = "rangeddefense"
|
rollData.mode = "rangeddefense"
|
||||||
if ( attackRollData) {
|
|
||||||
rollData.attackRollData = duplicate(attackRollData)
|
rollData.attackRollData = duplicate(attackRollData)
|
||||||
|
rollData.sizeDice = CrucibleUtility.getSizeDice( this.system.biodata.size )
|
||||||
rollData.effectiveRange = CrucibleUtility.getWeaponRange(attackRollData.weapon)
|
rollData.effectiveRange = CrucibleUtility.getWeaponRange(attackRollData.weapon)
|
||||||
rollData.tokensDistance = attackRollData.tokensDistance // QoL copy
|
rollData.tokensDistance = attackRollData.tokensDistance // QoL copy
|
||||||
}
|
|
||||||
rollData.sizeDice = CrucibleUtility.getSizeDice(this.system.biodata.size)
|
|
||||||
rollData.distanceBonusDice = 0 //Math.max(0, Math.floor((rollData.tokensDistance - rollData.effectiveRange) + 0.5))
|
rollData.distanceBonusDice = 0 //Math.max(0, Math.floor((rollData.tokensDistance - rollData.effectiveRange) + 0.5))
|
||||||
rollData.hasCover = "none"
|
rollData.hasCover = "none"
|
||||||
rollData.situational = "none"
|
rollData.situational = "none"
|
||||||
@ -758,10 +752,10 @@ export class CrucibleActor extends Actor {
|
|||||||
let diceColor = armor.system.absorprionroll
|
let diceColor = armor.system.absorprionroll
|
||||||
let armorResult = await CrucibleUtility.getRollTableFromDiceColor( diceColor, false )
|
let armorResult = await CrucibleUtility.getRollTableFromDiceColor( diceColor, false )
|
||||||
console.log("Armor log", armorResult)
|
console.log("Armor log", armorResult)
|
||||||
let armorValue = Math.max(0, (Number(armorResult.text) + reduce) * multiply)
|
let armorValue = (Number(armorResult.text) + reduce) * multiply
|
||||||
if ( advantage || disadvantage) {
|
if ( advantage || disadvantage) {
|
||||||
let armorResult2 = await CrucibleUtility.getRollTableFromDiceColor( diceColor, false )
|
let armorResult2 = await CrucibleUtility.getRollTableFromDiceColor( diceColor, false )
|
||||||
let armorValue2 = Math.max(0, (Number(armorResult2.text) + reduce) * multiply)
|
let armorValue2 = (Number(armorResult2.text) + reduce) * multiply
|
||||||
if ( advantage) {
|
if ( advantage) {
|
||||||
armorValue = (armorValue2 > armorValue) ? armorValue2 : armorValue
|
armorValue = (armorValue2 > armorValue) ? armorValue2 : armorValue
|
||||||
messages.push(`Armor advantage - Roll 1 = ${armorValue} - Roll 2 = ${armorValue2}`)
|
messages.push(`Armor advantage - Roll 1 = ${armorValue} - Roll 2 = ${armorValue2}`)
|
||||||
|
@ -157,9 +157,6 @@ export class CrucibleNPCSheet extends ActorSheet {
|
|||||||
html.find('.roll-shield-die').click((event) => {
|
html.find('.roll-shield-die').click((event) => {
|
||||||
this.actor.rollShieldDie()
|
this.actor.rollShieldDie()
|
||||||
});
|
});
|
||||||
html.find('.roll-target-die').click((event) => {
|
|
||||||
this.actor.rollDefenseRanged()
|
|
||||||
});
|
|
||||||
|
|
||||||
html.find('.roll-save').click((event) => {
|
html.find('.roll-save').click((event) => {
|
||||||
const saveKey = $(event.currentTarget).data("save-key")
|
const saveKey = $(event.currentTarget).data("save-key")
|
||||||
|
@ -199,15 +199,15 @@
|
|||||||
"styles": [
|
"styles": [
|
||||||
"styles/simple.css"
|
"styles/simple.css"
|
||||||
],
|
],
|
||||||
"version": "10.0.12",
|
"version": "10.0.10",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "10",
|
"minimum": "10",
|
||||||
"verified": "10.285",
|
"verified": "10.279",
|
||||||
"maximum": "10"
|
"maximum": "10"
|
||||||
},
|
},
|
||||||
"title": "Crucible RPG",
|
"title": "Crucible RPG",
|
||||||
"manifest": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/raw/master/system.json",
|
"manifest": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/raw/master/system.json",
|
||||||
"download": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/archive/fvtt-crucible-rpg-v10.0.12.zip",
|
"download": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/archive/fvtt-crucible-rpg-v10.0.10.zip",
|
||||||
"url": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg",
|
"url": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg",
|
||||||
"background": "images/ui/crucible_welcome_page.webp",
|
"background": "images/ui/crucible_welcome_page.webp",
|
||||||
"id": "fvtt-crucible-rpg"
|
"id": "fvtt-crucible-rpg"
|
||||||
|
@ -59,12 +59,6 @@
|
|||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<li class="item flexrow list-item" data-attr-key="class">
|
|
||||||
<img class="sheet-competence-img" src="systems/fvtt-crucible-rpg/images/icons/feats/Marksman (Ballistic).webp" />
|
|
||||||
<span class="ability-label " name="rollTarget">
|
|
||||||
<h4 class="ability-text-white ability-margin"><a class="roll-target-die ability-margin">Target Roll</a></h4>
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -60,12 +60,6 @@
|
|||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<li class="item flexrow list-item" data-attr-key="class">
|
|
||||||
<img class="sheet-competence-img" src="systems/fvtt-crucible-rpg/images/icons/feats/Marksman (Ballistic).webp" />
|
|
||||||
<span class="ability-label " name="rollTarget">
|
|
||||||
<h4 class="ability-text-white ability-margin"><a class="roll-target-die ability-margin">Target Roll</a></h4>
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,25 +3,15 @@
|
|||||||
<span class="ability-label " name="hp">
|
<span class="ability-label " name="hp">
|
||||||
<h4 class="ability-text-white ability-margin">HP</h4>
|
<h4 class="ability-text-white ability-margin">HP</h4>
|
||||||
</span>
|
</span>
|
||||||
<span class="ability-label ability-margin">
|
<span class="ability-label ability-margin"><input class="input-numeric-short" name="system.secondary.hp.value" value="{{data.secondary.hp.value}}"></span>
|
||||||
<input class="input-numeric-short" name="system.secondary.hp.value" value="{{data.secondary.hp.value}}"></span>
|
|
||||||
{{#if (eq type "character")}}
|
|
||||||
<span class="ability-label ability-margin"> / {{data.secondary.hp.max}}</span>
|
<span class="ability-label ability-margin"> / {{data.secondary.hp.max}}</span>
|
||||||
{{else}}
|
|
||||||
<span class="ability-label ability-margin">/<input class="input-numeric-short" name="system.secondary.hp.max" value="{{data.secondary.hp.max}}"></span>
|
|
||||||
{{/if}}
|
|
||||||
</li>
|
</li>
|
||||||
<li class="item flexrow list-item" data-attr-key="hp">
|
<li class="item flexrow list-item" data-attr-key="hp">
|
||||||
<span class="ability-label " name="hp">
|
<span class="ability-label " name="hp">
|
||||||
<h4 class="ability-text-white ability-margin">Effort</h4>
|
<h4 class="ability-text-white ability-margin">Effort</h4>
|
||||||
</span>
|
</span>
|
||||||
<span class="ability-label ability-margin">
|
<span class="ability-label ability-margin"><input class="input-numeric-short" name="system.secondary.effort.value" value="{{data.secondary.effort.value}}"></span>
|
||||||
<input class="input-numeric-short" name="system.secondary.effort.value" value="{{data.secondary.effort.value}}"></span>
|
|
||||||
{{#if (eq type "character")}}
|
|
||||||
<span class="ability-label ability-margin"> / {{data.secondary.effort.max}}</span>
|
<span class="ability-label ability-margin"> / {{data.secondary.effort.max}}</span>
|
||||||
{{else}}
|
|
||||||
<span class="ability-label ability-margin">/<input class="input-numeric-short" name="system.secondary.effort.max" value="{{data.secondary.effort.max}}"></span>
|
|
||||||
{{/if}}
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li> </li>
|
<li> </li>
|
||||||
|
Loading…
Reference in New Issue
Block a user