Skip to content

Commit

Permalink
Floor max slots in crafting ability creation (foundryvtt#17697)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosFdez authored Dec 13, 2024
1 parent 4b0539e commit 10add43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/actor/character/crafting/ability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class CraftingAbility implements CraftingAbilityData {
this.isAlchemical = data.isAlchemical;
this.isDailyPrep = data.isDailyPrep;
this.isPrepared = data.isPrepared;
this.maxSlots = data.maxSlots ?? 0;
this.maxSlots = Math.floor(data.maxSlots ?? 0);
this.maxItemLevel = data.maxItemLevel;
this.fieldDiscovery = data.fieldDiscovery ? new Predicate(data.fieldDiscovery) : null;
this.batchSize = data.batchSize;
Expand Down

0 comments on commit 10add43

Please sign in to comment.