Fix #100 effect message

This commit is contained in:
sladecraven 2022-10-06 12:38:31 +02:00
parent 8ddc3ad776
commit 4311a4762d
3 changed files with 11 additions and 2 deletions

View File

@ -811,8 +811,10 @@ export class PegasusActor extends Actor {
ChatMessage.create({ content: "Effects of this type cannot be applied while Immunity is applied" })
return
}
if ( item.system.droptext && item.system.droptext.length > 0) {
ChatMessage.create( { content: `Effect ${item.name} message : ${item.system.droptext}`})
}
}
if (item.type == 'race') {
this.applyRace(item)
@ -2304,6 +2306,9 @@ export class PegasusActor extends Actor {
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])
if (__isVehicleUnique[item.type]) {
let toDelList = []

View File

@ -417,6 +417,7 @@
"affectstatus": false,
"affectedstatus": "",
"locked": false,
"droptext": "",
"description": ""
},
"race": {

View File

@ -85,6 +85,9 @@
<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>
</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>
<label class="attribute-value checkbox"><input type="checkbox" name="system.affectstatus" {{checked data.affectstatus}}/></label>