Compare commits
5 Commits
fvtt-pegas
...
fvtt-pegas
Author | SHA1 | Date | |
---|---|---|---|
27029abc88 | |||
d8f8b7198c | |||
908cf4206a | |||
e531b636bc | |||
4065d46ffd |
@ -302,7 +302,7 @@ export class PegasusUtility {
|
|||||||
item = this.actor.items.get(data.uuid)
|
item = this.actor.items.get(data.uuid)
|
||||||
}
|
}
|
||||||
let itemFull = await PegasusUtility.searchItem(item)
|
let itemFull = await PegasusUtility.searchItem(item)
|
||||||
console.log("DROPPED DATA", data.uuid)
|
//console.log("DROPPED DATA", data.uuid)
|
||||||
if (game.user.isGM || token.actor.isOwner) {
|
if (game.user.isGM || token.actor.isOwner) {
|
||||||
this.addItemDropToActor(token.actor, itemFull)
|
this.addItemDropToActor(token.actor, itemFull)
|
||||||
} else {
|
} else {
|
||||||
@ -575,6 +575,21 @@ export class PegasusUtility {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
static computeDistance() {
|
||||||
|
let mytarget = game.user.targets.first()
|
||||||
|
console.log("target", mytarget, mytarget)
|
||||||
|
let mytoken = _token
|
||||||
|
|
||||||
|
if (mytarget) {
|
||||||
|
let dist = canvas.grid.measureDistances(
|
||||||
|
[{ ray: new Ray(mytoken.center, mytarget.center) }],
|
||||||
|
{ gridSpaces: true });
|
||||||
|
console.log("DIST", dist)
|
||||||
|
} else {
|
||||||
|
console.log("NO TARGET")
|
||||||
|
}
|
||||||
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static getDefenseState(actorId) {
|
static getDefenseState(actorId) {
|
||||||
return this.defenderStore[actorId];
|
return this.defenderStore[actorId];
|
||||||
|
@ -253,7 +253,7 @@
|
|||||||
],
|
],
|
||||||
"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": "10.0.23",
|
"version": "10.0.26",
|
||||||
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.0.23.zip",
|
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.0.26.zip",
|
||||||
"background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp"
|
"background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp"
|
||||||
}
|
}
|
@ -443,7 +443,8 @@
|
|||||||
"specincrease": [],
|
"specincrease": [],
|
||||||
"perks": [],
|
"perks": [],
|
||||||
"perksrole": "",
|
"perksrole": "",
|
||||||
"description": ""
|
"description": "",
|
||||||
|
"rolelevel": 1
|
||||||
},
|
},
|
||||||
"ability": {
|
"ability": {
|
||||||
"affectedstat": "str",
|
"affectedstat": "str",
|
||||||
|
@ -13,16 +13,20 @@
|
|||||||
|
|
||||||
<div class="tab description" data-group="primary" data-tab="description">
|
<div class="tab description" data-group="primary" data-tab="description">
|
||||||
<div class="medium-editor item-text-long-line">
|
<div class="medium-editor item-text-long-line">
|
||||||
<label class="generic-label">Power Ups</label>
|
<label class="generic-label"><strong>Power Ups</strong></label>
|
||||||
{{editor purchasedeffects target="system.purchasedeffects" button=true owner=owner
|
{{editor purchasedeffects target="system.purchasedeffects" button=true owner=owner
|
||||||
editable=editable}}
|
editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
|
<span><label> </label></span>
|
||||||
|
<hr>
|
||||||
<div class="long-editor item-text-long-line">
|
<div class="long-editor item-text-long-line">
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label"><strong>Description</strong></label>
|
||||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
|
<span><label> </label></span>
|
||||||
|
<hr>
|
||||||
<div class="medium-editor item-text-long-line">
|
<div class="medium-editor item-text-long-line">
|
||||||
<label class="generic-label">Available Upgrades</label>
|
<label class="generic-label"><strong>Available Upgrades</strong></label>
|
||||||
{{editor effects target="system.effects" button=true owner=owner editable=editable}}
|
{{editor effects target="system.effects" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<form class="{{cssClass}}" autocomplete="off">
|
<form class="{{cssClass}}" autocomplete="off">
|
||||||
<header class="sheet-header">
|
<header class="sheet-header">
|
||||||
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
|
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}" />
|
||||||
<div class="header-fields">
|
<div class="header-fields">
|
||||||
<h1 class="charname">
|
<h1 class="charname">
|
||||||
<input name="name" type="text" value="{{name}}" placeholder="Name"/>
|
<input name="name" type="text" value="{{name}}" placeholder="Name" />
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
@ -16,15 +16,22 @@
|
|||||||
|
|
||||||
<div class="tab details" data-group="primary" data-tab="details">
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li class="flexrow"><label class="generic-label">Role Level</label>
|
||||||
|
<input type="text" class="input-numeric-short padd-right" name="system.rolelevel" value="{{data.rolelevel}}"
|
||||||
|
data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Stat increase 1</label>
|
<li class="flexrow"><label class="generic-label">Stat increase 1</label>
|
||||||
<select class="competence-base flexrow" type="text" name="system.statincrease1" value="{{data.statincrease1}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.statincrease1" value="{{data.statincrease1}}"
|
||||||
|
data-dtype="String">
|
||||||
{{#select data.statincrease1}}
|
{{#select data.statincrease1}}
|
||||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false mr=false}}
|
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false mr=false}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow"><label class="generic-label">Stat increase 2</label>
|
<li class="flexrow"><label class="generic-label">Stat increase 2</label>
|
||||||
<select class="competence-base flexrow" type="text" name="system.statincrease2" value="{{data.statincrease2}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.statincrease2" value="{{data.statincrease2}}"
|
||||||
|
data-dtype="String">
|
||||||
{{#select data.statincrease2}}
|
{{#select data.statincrease2}}
|
||||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false mr=false}}
|
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false mr=false}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
@ -35,13 +42,16 @@
|
|||||||
<label class="generic-label">Role Ability</label>
|
<label class="generic-label">Role Ability</label>
|
||||||
</li>
|
</li>
|
||||||
<ul class="ul-level1">
|
<ul class="ul-level1">
|
||||||
<li class="flexrow"><div class="drop-specialability"><label>Drop Abilities here !</label></div>
|
<li class="flexrow">
|
||||||
|
<div class="drop-specialability"><label>Drop Abilities here !</label></div>
|
||||||
</li>
|
</li>
|
||||||
{{#each data.specialability as |ability idx|}}
|
{{#each data.specialability as |ability idx|}}
|
||||||
<li class="flexrow">
|
<li class="flexrow">
|
||||||
<label name="system.specialability[{{idx}}].name"><a class="view-subitem" data-type="specialability" data-index="{{idx}}">{{ability.name}}</a></label>
|
<label name="system.specialability[{{idx}}].name"><a class="view-subitem" data-type="specialability"
|
||||||
|
data-index="{{idx}}">{{ability.name}}</a></label>
|
||||||
<div class="item-controls padd-left">
|
<div class="item-controls padd-left">
|
||||||
<a class="item-control delete-subitem padd-left" data-type="specialability" data-index="{{idx}}" title="Delete Ability"><i class="fas fa-trash"></i></a>
|
<a class="item-control delete-subitem padd-left" data-type="specialability" data-index="{{idx}}"
|
||||||
|
title="Delete Ability"><i class="fas fa-trash"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
@ -53,14 +63,16 @@
|
|||||||
<li class="flexrow">
|
<li class="flexrow">
|
||||||
{{#each data.statincreasechoice as |stat idx|}}
|
{{#each data.statincreasechoice as |stat idx|}}
|
||||||
<label name="statchoice{{idx}}">{{stat.name}}</label>
|
<label name="statchoice{{idx}}">{{stat.name}}</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" class="stat-choice-flag" data-stat-idx="{{idx}}" {{checked stat.flag}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" class="stat-choice-flag"
|
||||||
|
data-stat-idx="{{idx}}" {{checked stat.flag}} /></label>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Role category for available perks</label>
|
<li class="flexrow"><label class="generic-label">Role category for available perks</label>
|
||||||
<select class="competence-base flexrow" type="text" name="system.perksrole" value="{{data.perksrole}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.perksrole" value="{{data.perksrole}}"
|
||||||
|
data-dtype="String">
|
||||||
{{#select data.perksrole}}
|
{{#select data.perksrole}}
|
||||||
<option value="agitator">Agitator</option>
|
<option value="agitator">Agitator</option>
|
||||||
<option value="defender">Defender</option>
|
<option value="defender">Defender</option>
|
||||||
|
Reference in New Issue
Block a user