Skip to content

Commit

Permalink
Merge pull request #44 from MikeIsAStar/ensure-that-invalid-items-can…
Browse files Browse the repository at this point in the history
…-not-be-lost

[MKW] Ensure that invalid items can not be lost
  • Loading branch information
mkwcat authored Feb 3, 2024
2 parents 43bdb8e + bb11cf5 commit 79963aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions payload/import/mkwNetEventHandler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class EventHandler
ItemUsed = 1,
ItemThrown = 2,
ItemObjectHit = 3,
ItemLost = 5,
ItemDropped = 7,
};

Expand Down Expand Up @@ -52,6 +53,9 @@ class EventHandler
case EventType::ItemObjectHit: {
return CanHitItemObject(item);
}
case EventType::ItemLost: {
return item == ItemObject::ThunderCloud;
}
case EventType::ItemDropped: {
return CanDropItemObject(item);
}
Expand Down

0 comments on commit 79963aa

Please sign in to comment.