#Fix 78 : add role level
This commit is contained in:
parent
908cf4206a
commit
d8f8b7198c
@ -302,7 +302,7 @@ export class PegasusUtility {
|
||||
item = this.actor.items.get(data.uuid)
|
||||
}
|
||||
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) {
|
||||
this.addItemDropToActor(token.actor, itemFull)
|
||||
} else {
|
||||
@ -575,6 +575,21 @@ export class PegasusUtility {
|
||||
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) {
|
||||
return this.defenderStore[actorId];
|
||||
|
@ -13,16 +13,20 @@
|
||||
|
||||
<div class="tab description" data-group="primary" data-tab="description">
|
||||
<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
|
||||
editable=editable}}
|
||||
</div>
|
||||
<span><label> </label></span>
|
||||
<hr>
|
||||
<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}}
|
||||
</div>
|
||||
<span><label> </label></span>
|
||||
<hr>
|
||||
<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}}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user