Skip to content

Commit

Permalink
Updated topology for GURPS - now tracks inventory correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
lupestro committed Jun 22, 2022
1 parent 8f31f14 commit c1f2f4a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions topology.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,8 @@ class StandardLightTopology {
}

_findMatchingItem(actorId, lightSourceName) {
let result = [undefined, undefined];
GURPS.recurselist(game.actors.get(actorId).system.equipment.carried,(item, key) => {
if (item.name.toLowerCase() === lightSourceName.toLowerCase()) {
result = [item, key];
}
});
return result;
let actor = game.actors.get(actorId);
return actor.findEquipmentByName(lightSourceName);
}

actorHasLightSource(actorId, lightSource) {
Expand Down

0 comments on commit c1f2f4a

Please sign in to comment.