You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have disabled all other plugins and the issue still persists.
Possible solution
If I understand the integration with the Initiative Tracker plugin well, it should suffice to add a modifier field to the imported data that reflects the correct initiative calculation.
The 5e.tools initiative calculation works as follows:
If the creature has no initiative key in the data, the Dexterity modifier is used.
If the creature has an initiative key in the data:
If the key is a number: use that as the initiative modifier
If the key is an object:
If the object has a key initiative which is a number: use that as the initiative modifier
The object is assumed to have a key proficiency which is a number: the initiative modifier is this number times the creature's proficiency bonus + the creature's Dexterity modifier
Pseudocode:
if (!creature.initiative) return getModifier(creature.dex);
if (typeof creature.initiative == "number") return creature.initiative;
if (typeof creature.initiative == "object") {
if (typeof creature.initiative.initiative == "number") return creature.initiative.initiative;
return creature.initiative.proficiency * getProficiencyBonus(creature.cr) + getModifier(creature.dex);
}
throw error;
The text was updated successfully, but these errors were encountered:
Check for existing bug reports before submitting.
Expected Behavior
When importing a creature from 5e.tools with a custom initiative score, this should be reflected in the imported data.
Current behaviour
The information is not stored (and as such is lost).
Reproduction
Import the Assassin, which adds twice its proficiency bonus to its initiative.
Notice that the imported data does not include the initiative bonus.
JSON samples
5e.tools JSON (excerpt)
Fantasy statblocks JSON (excerpt)
Which Operating Systems are you using?
Obsidian Version Check
1.8.4 and 1.8.4
Plugin Version
4.8.1
Confirmation
Possible solution
If I understand the integration with the Initiative Tracker plugin well, it should suffice to add a
modifier
field to the imported data that reflects the correct initiative calculation.The 5e.tools initiative calculation works as follows:
initiative
key in the data, the Dexterity modifier is used.initiative
key in the data:initiative
which is a number: use that as the initiative modifierproficiency
which is a number: the initiative modifier is this number times the creature's proficiency bonus + the creature's Dexterity modifierPseudocode:
The text was updated successfully, but these errors were encountered: