forked from xdy/twodsix-foundryvtt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change so that Actor creates untrained skill
Previously creating a new TwodsixActor did create an untrained skill, however creating an Actor does not create an untrained skill. This fix makes it so that an untrained skill is created in both cases. Fix xdy#328
- Loading branch information
Showing
4 changed files
with
11 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import TwodsixActor from "../entities/TwodsixActor"; | ||
|
||
Hooks.on('createActor', async (actor: TwodsixActor) => { | ||
if (actor.data.type == "traveller") { | ||
await actor.createUntrainedSkill(); | ||
} | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters