Skip to content

Commit

Permalink
output heat check when maximum heat due to usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Stexinator committed Mar 12, 2024
1 parent 7b9a5f0 commit 5f58a5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

## Changelog

0.0.19
- output heat check when maximum heat due to usage

0.0.17
- added handling for pilots with SP
- skip heat spikes for npc mechs
Expand Down
2 changes: 1 addition & 1 deletion src/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"styles": [
"styles/module.css"
],
"version": "0.0.18",
"version": "0.0.19",
"id": "salvage-union-combat-automation",
"packs": [
{
Expand Down
9 changes: 1 addition & 8 deletions src/scripts/heat.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,7 @@ export default class SalvageUnionCombatAutomationHeat{
}

if((heat + heatValue) == max_heat) {
let message = await ChatMessage.create({
content: game.i18n.format("salvage-union-combat-automation.heat-check-required") +
'<button type="button" class="su-combatautomation-heatcheckbutton">'+game.i18n.format("salvage-union-combat-automation.buttons.heatcheck")+'</button>',
speaker: { alias: game.user.name }
});

message.setFlag('salvage-union-combat-automation', 'heat', (heat + heatValue))
console.log(message)
this.handleHeatspike(actor)
}

actor.update({ 'system.heat.value': heat + heatValue });
Expand Down

0 comments on commit 5f58a5d

Please sign in to comment.