Pulling out hope method and always updating the resources. (#1417)

Making sure stress decreases on critical.
This commit is contained in:
Nick Salyzyn 2025-12-13 07:18:21 -07:00 committed by GitHub
parent 64caff6fb2
commit 7a50d77952
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 51 additions and 39 deletions

View file

@ -679,6 +679,10 @@ export default class DhpActor extends Actor {
return updates;
}
/**
* Resources are modified asynchronously, so be careful not to update the same resource in
* quick succession.
*/
async modifyResource(resources) {
if (!resources?.length) return;