Changed targetInfos (name/img) to target (TokenDocument)
Added item in dp/rnk/roll
This commit is contained in:
@@ -11,19 +11,21 @@ new game.l5r5e.DicePickerDialog({
|
||||
```
|
||||
|
||||
## Constructor Options
|
||||
| Property | Type | Notes / Examples |
|
||||
|------------------|----------|------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| actor | Actor | Any `Actor` object instance.<br>ex : `game.user.character`, `canvas.tokens.controlled[0].actor` |
|
||||
| actorId | string | This is the `id` not the `uuid` of an actor.<br>ex : "AbYgKrNwWeAxa9jT" |
|
||||
| actorName | string | Careful this is case sensitive.<br>ex : "Isawa Aki" |
|
||||
| difficulty | number | `1` to `9` |
|
||||
| difficultyHidden | boolean | If `true`, hide the difficulty and lock the view for the player. |
|
||||
| isInitiativeRoll | boolean | `true` if this is an initiative roll |
|
||||
| itemUuid | string | The `uuid` of technique or weapon used for this roll. Can be anything retrieved by `fromUuid()` or `fromUuidSync()`<br>_Added in v1.9.0_ |
|
||||
| ringId | string | If not provided, take the current stance of the actor if any.<br>ex : "fire", "water" |
|
||||
| skillId | string | Skill `id`<br>ex : "design", "aesthetics", "courtesy" |
|
||||
| skillCatId | string | Skill category `id`<br>ex : "artisan", "scholar" |
|
||||
| skillsList | string[] | `skillId`/`skillCatId` list coma separated.<br>Allow the player to select the skill used in a select<br>ex : "artisan,design" |
|
||||
| Property | Type | Notes / Examples |
|
||||
|------------------|---------------|------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| actor | Actor | Any `Actor` object instance.<br>ex : `game.user.character`, `canvas.tokens.controlled[0].actor` |
|
||||
| actorId | string | This is the `id` not the `uuid` of an actor.<br>ex : "AbYgKrNwWeAxa9jT" |
|
||||
| actorName | string | Careful this is case-sensitive.<br>ex : "Isawa Aki" |
|
||||
| difficulty | number | `1` to `9` |
|
||||
| difficultyHidden | boolean | If `true`, hide the difficulty and lock the view for the player. |
|
||||
| isInitiativeRoll | boolean | `true` if this is an initiative roll. |
|
||||
| item | Item | The object of technique or weapon used for this roll.<br>_Added in v1.9.0_ |
|
||||
| itemUuid | string | The `uuid` of technique or weapon used for this roll. Can be anything retrieved by `fromUuid()` or `fromUuidSync()`<br>_Added in v1.9.0_ |
|
||||
| ringId | string | If not provided, take the current stance of the actor if any.<br>ex : "fire", "water" |
|
||||
| skillId | string | Skill `id`<br>ex : "design", "aesthetics", "courtesy" |
|
||||
| skillCatId | string | Skill category `id`<br>ex : "artisan", "scholar" |
|
||||
| skillsList | string[] | `skillId`/`skillCatId` list coma separated.<br>Allow the player to select the skill used in a select<br>ex : "artisan,design" |
|
||||
| target | TokenDocument | The targeted Token<br>_Added in v1.9.0_ |
|
||||
|
||||
|
||||
All these properties are optional.
|
||||
|
||||
@@ -12,7 +12,7 @@ difficulty: 2,
|
||||
difficultyHidden: false,
|
||||
history: null, // Stored data of the RnK, can be big
|
||||
initialFormula: null, // The initial formula use in DP
|
||||
itemUuid: null, // technique or weapon uuid
|
||||
item: null, // technique or weapon object
|
||||
isInitiativeRoll: false,
|
||||
keepLimit: null, // Max number of dice to keep
|
||||
rnkEnded: false, // false if the player can modify the roll.
|
||||
@@ -29,6 +29,6 @@ summary: {
|
||||
opportunity: 0,
|
||||
strife: 0,
|
||||
},
|
||||
targetInfos: null, // "img" and "name" of the target if any
|
||||
target: null, // Target object (TokenDocument)
|
||||
voidPointUsed: false, // if a void point as been used for this roll
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user