Browse Source

feat: Added a way for aggro to set all objects in its list to a certain amount (instead of resetting)

tags/v0.12.0
Shaun 1 year ago
parent
commit
7a04469667
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/server/components/aggro.js

+ 6
- 0
src/server/components/aggro.js View File

@@ -410,5 +410,11 @@ module.exports = {

isInCombat: function () {
return this.list.length > 0;
},

setAllAmounts: function (amount) {
this.list.forEach(l => {
l.amount = amount;
});
}
};

Loading…
Cancel
Save