Skip to content

Commit

Permalink
fix(actor skill roll): fixed a bug where skills were always rolled wi…
Browse files Browse the repository at this point in the history
…th 1 dice
  • Loading branch information
SouOWendel committed Jan 31, 2024
1 parent 0edb83e commit 1b8ff16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions module/documents/actor.mjs
Expand Up @@ -31,11 +31,11 @@ export class OrdemActor extends Actor {

// Make modifications to data here. For example:
const data = actorData.data;

// TODO: Update portuguese class name for english class name (6.3.1)
if (context.data.class == 'Combatente') await Actor.updateDocuments([{_id: actorData.actor._id, system: {class: 'fighter'}} ]);
if (context.data.class == 'Especialista') await Actor.updateDocuments([{_id: actorData.actor._id, system: {class: 'specialist'}} ]);
if (context.data.class == 'Ocultista') await Actor.updateDocuments([{_id: actorData.actor._id, system: {class: 'occultist'}} ]);
if (data?.class == 'Combatente') await Actor.updateDocuments([{_id: actorData.actor._id, system: {class: 'fighter'}} ]);
if (data?.class == 'Especialista') await Actor.updateDocuments([{_id: actorData.actor._id, system: {class: 'specialist'}} ]);
if (data?.class == 'Ocultista') await Actor.updateDocuments([{_id: actorData.actor._id, system: {class: 'occultist'}} ]);

// Loop through ability scores, and add their modifiers to our sheet output.
for (const [keySkill, skillsName] of Object.entries(data.skills)) {
Expand Down

0 comments on commit 1b8ff16

Please sign in to comment.