FixStun consequence

This commit is contained in:
sladecraven 2021-05-23 12:00:34 +02:00
parent e33c18a4b5
commit 6845e803a5
2 changed files with 4 additions and 4 deletions

View File

@ -419,9 +419,9 @@ export class SoSActor extends Actor {
}
// Stun consequence
if ( flipData.nbStun > 0) {
let stun = this.data.items.find( item => item.type == 'consequence' && item.name == 'Sun');
let stun = this.data.items.find( item => item.type == 'consequence' && item.name == 'Stun');
let newSeverity = stun.severity;
for(i=0; i<flipData.nbStun; i++) {
for(let i=0; i<flipData.nbStun; i++) {
newSeverity = SoSUtility.increaseConsequenceSeverity( newSeverity );
}
await this.updateOwnedItem( { _id: stun._id, 'data.severity': newSeverity});

View File

@ -2,8 +2,8 @@
"name": "foundryvtt-shadows-over-sol",
"title": "Shadows over Sol",
"description": "Shadows over Sol for FoundryVTT",
"version": "1.0.0",
"manifestPlusVersion": "1.0.0",
"version": "1.0.1",
"manifestPlusVersion": "1.0.1",
"minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.9",
"templateVersion": 23,