FixStun consequence
This commit is contained in:
parent
e33c18a4b5
commit
6845e803a5
@ -419,9 +419,9 @@ export class SoSActor extends Actor {
|
|||||||
}
|
}
|
||||||
// Stun consequence
|
// Stun consequence
|
||||||
if ( flipData.nbStun > 0) {
|
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;
|
let newSeverity = stun.severity;
|
||||||
for(i=0; i<flipData.nbStun; i++) {
|
for(let i=0; i<flipData.nbStun; i++) {
|
||||||
newSeverity = SoSUtility.increaseConsequenceSeverity( newSeverity );
|
newSeverity = SoSUtility.increaseConsequenceSeverity( newSeverity );
|
||||||
}
|
}
|
||||||
await this.updateOwnedItem( { _id: stun._id, 'data.severity': newSeverity});
|
await this.updateOwnedItem( { _id: stun._id, 'data.severity': newSeverity});
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
"name": "foundryvtt-shadows-over-sol",
|
"name": "foundryvtt-shadows-over-sol",
|
||||||
"title": "Shadows over Sol",
|
"title": "Shadows over Sol",
|
||||||
"description": "Shadows over Sol for FoundryVTT",
|
"description": "Shadows over Sol for FoundryVTT",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"manifestPlusVersion": "1.0.0",
|
"manifestPlusVersion": "1.0.1",
|
||||||
"minimumCoreVersion": "0.7.5",
|
"minimumCoreVersion": "0.7.5",
|
||||||
"compatibleCoreVersion": "0.7.9",
|
"compatibleCoreVersion": "0.7.9",
|
||||||
"templateVersion": 23,
|
"templateVersion": 23,
|
||||||
|
Loading…
Reference in New Issue
Block a user