Pulling out hope method and always updating the resources.

Making sure stress decreases on critical.
This commit is contained in:
nsalyzyn 2025-12-11 19:59:40 -07:00
parent 00e9436fe0
commit 23ecb2f244
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;