forked from public/bol
Astrologie !
This commit is contained in:
@ -481,15 +481,21 @@ export class BoLActor extends Actor {
|
||||
let rID = randomID(16)
|
||||
let horoscopes = duplicate(game.settings.get("bol", "horoscope-group"))
|
||||
horoscopes[rID] = {
|
||||
id: rID,
|
||||
name: game.i18n.localize("BOL.ui.groupHoroscope") + this.name,
|
||||
maxDice: rollData.careerBonus,
|
||||
availableDice: rollData.careerBonus,
|
||||
type: (rollData.isSuccess) ? "bonus": "malus"
|
||||
}
|
||||
game.settings.set("bol", "horoscope-group", horoscopes)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------- */
|
||||
getAstrologyPoints() {
|
||||
return this.system.resources.astrologypoints.value
|
||||
}
|
||||
/*-------------------------------------------- */
|
||||
removeHoroscopeMinor( rollData) {
|
||||
let toDel = []
|
||||
@ -619,11 +625,6 @@ export class BoLActor extends Actor {
|
||||
"label": "BOL.featureSubtypes.effects",
|
||||
"ranked": false,
|
||||
"items": this.boleffects
|
||||
},
|
||||
"horoscopes": {
|
||||
"label": "BOL.featureSubtypes.horoscope",
|
||||
"ranked": false,
|
||||
"items": this.horoscopes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user