Fix #100 effect message
This commit is contained in:
parent
8ddc3ad776
commit
4311a4762d
@ -811,9 +811,11 @@ export class PegasusActor extends Actor {
|
|||||||
ChatMessage.create({ content: "Effects of this type cannot be applied while Immunity is applied" })
|
ChatMessage.create({ content: "Effects of this type cannot be applied while Immunity is applied" })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if ( item.system.droptext && item.system.droptext.length > 0) {
|
||||||
|
ChatMessage.create( { content: `Effect ${item.name} message : ${item.system.droptext}`})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (item.type == 'race') {
|
if (item.type == 'race') {
|
||||||
this.applyRace(item)
|
this.applyRace(item)
|
||||||
} else if (item.type == 'role') {
|
} else if (item.type == 'role') {
|
||||||
@ -2304,6 +2306,9 @@ export class PegasusActor extends Actor {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( item.type == "effect" && item.system.droptext && item.system.droptext.length > 0) {
|
||||||
|
ChatMessage.create( { content: `Effect ${item.name} message : ${item.system.droptext}`})
|
||||||
|
}
|
||||||
//console.log(">>>>> item", item.type, __isVehicleUnique[item.type])
|
//console.log(">>>>> item", item.type, __isVehicleUnique[item.type])
|
||||||
if (__isVehicleUnique[item.type]) {
|
if (__isVehicleUnique[item.type]) {
|
||||||
let toDelList = []
|
let toDelList = []
|
||||||
|
@ -417,6 +417,7 @@
|
|||||||
"affectstatus": false,
|
"affectstatus": false,
|
||||||
"affectedstatus": "",
|
"affectedstatus": "",
|
||||||
"locked": false,
|
"locked": false,
|
||||||
|
"droptext": "",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"race": {
|
"race": {
|
||||||
|
@ -85,7 +85,10 @@
|
|||||||
<li class="flexrow"><label class="generic-label">Locked (Only GM can change/edit) ?</label>
|
<li class="flexrow"><label class="generic-label">Locked (Only GM can change/edit) ?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.locked" {{checked data.locked}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.locked" {{checked data.locked}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="flexrow"><label class="generic-label">Display Text when added to Actor</label>
|
||||||
|
<input type="text" class="input-numeric-short padd-right" name="system.droptext" value="{{data.droptext}}" data-dtype="String"/>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Affect Status?</label>
|
<li class="flexrow"><label class="generic-label">Affect Status?</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="system.affectstatus" {{checked data.affectstatus}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="system.affectstatus" {{checked data.affectstatus}}/></label>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user