Skip to content

Commit

Permalink
Merge pull request #4940 from krbz999/update-damage-types-example
Browse files Browse the repository at this point in the history
Update damage types example
  • Loading branch information
arbron authored Dec 30, 2024
2 parents 8d12e47 + 7c73b68 commit 93d160f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions wiki/Modifying-Your-Game-with-Scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ Hooks.once("init", () => {
// Adds a new "plasma" damage type that will be selectable as a new type of damage for weapons and a new type of resistance for actors.
Hooks.once("init", () => {
CONFIG.DND5E.damageTypes.plasma = {
label: "Plasma",
isPhysical: true
label: "Plasma", // The displayed name of the damage type
isPhysical: true, // Whether this is negated by adamantine/magical/silvered
icon: "", // An svg icon.
color: new Color(0), // The color of the damage type (currently unused).
reference: "" // A uuid of a journal entry rules page.
};
});
```
Expand All @@ -91,7 +94,7 @@ Hooks.once("init", () => {
Hooks.once("init", () => {
CONFIG.DND5E.itemProperties.laser = {
label: "Laser",
isPhysical: "true"
isPhysical: true
};
CONFIG.DND5E.validProperties.weapon.add("laser");
});
Expand Down

0 comments on commit 93d160f

Please sign in to comment.