Add the macros for the mini-gun
This commit is contained in:
parent
f6b704dffd
commit
6de3a2d2f4
2 changed files with 24 additions and 0 deletions
9
Axolotl-with-a-Gun/guns/mini-gun/steam-vent.mjs
Normal file
9
Axolotl-with-a-Gun/guns/mini-gun/steam-vent.mjs
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
const heat = game.user.getFlag(`world`, `heatMeter`);
|
||||||
|
game.user.setFlag(`world`, `heatMeter`, 0);
|
||||||
|
const chatData = ChatMessage.applyRollMode(
|
||||||
|
{
|
||||||
|
content: `<p>Vented ${heat} heat, and can gain that much GUN or AXOLOTL</p>`,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
await ChatMessage.implementation.create(chatData);
|
||||||
15
Axolotl-with-a-Gun/guns/mini-gun/unstoppable.mjs
Normal file
15
Axolotl-with-a-Gun/guns/mini-gun/unstoppable.mjs
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
const heat = game.user.getFlag(`world`, `heatMeter`) ?? 0;
|
||||||
|
|
||||||
|
let r = new Roll(`1d6`);
|
||||||
|
await r.evaluate();
|
||||||
|
const reduceBy = r.total;
|
||||||
|
|
||||||
|
const reducedHeat = Math.max(0, heat - reduceBy);
|
||||||
|
game.user.setFlag(`world`, `heatMeter`, reducedHeat);
|
||||||
|
|
||||||
|
const chatData = ChatMessage.applyRollMode(
|
||||||
|
{
|
||||||
|
content: `<p>Removed ${reduceBy} Heat.</p><p>Current Heat total after removal: ${reducedHeat}</p>`,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
await ChatMessage.implementation.create(chatData);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue