Skip to content

Commit

Permalink
v0.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
EndlesNights committed Sep 30, 2022
1 parent fa4b297 commit 5baa930
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## Version 0.3.6
Hotfix, add zero check to system.attributes.init.bonusValue

## Version 0.3.5
- the "show players" button on items should now work for items within the directory that players do not have permission to see. Holding down the "Show Players Item Permanently" key (default to Alt) will change the base permission to at least viewable for all players.
- Effect can now add bonuses to Initative value with the key of `system.attributes.init.bonusValue`
Expand Down
4 changes: 2 additions & 2 deletions module/actor/actor.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ export class Actor4e extends Actor {
}
}
//used for effects
initBonusValue += system.attributes.init.bonusValue;
initBonusValue += system.attributes.init.bonusValue || 0;

if(this.type === "NPC" && !system.advancedCals){
system.attributes.init.value = (system.attributes.init.ability ? system.abilities[system.attributes.init.ability].mod : 0) + (system.attributes.init.base || 0) + initBonusValue;
} else {
Expand Down
4 changes: 2 additions & 2 deletions system.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "dnd4e",
"title": "DnD 4th Edition",
"description": "An implementation of Dungeons & Dragons 4th Edition game system for Foundry Virtual Tabletop.",
"version": "0.3.5",
"version": "0.3.6",
"compatibility":{
"minimum": 10,
"verified": 10,
Expand Down Expand Up @@ -140,5 +140,5 @@
"secondaryTokenAttribute": "attributes.temphp",
"url": "https://github.com/EndlesNights/dnd4eBeta",
"manifest": "https://raw.githubusercontent.com/EndlesNights/dnd4eBeta/main/system.json",
"download": "https://github.com/EndlesNights/dnd4eBeta/archive/0.3.5.zip"
"download": "https://github.com/EndlesNights/dnd4eBeta/archive/0.3.6.zip"
}

0 comments on commit 5baa930

Please sign in to comment.