Bring back dungeon drops.

This commit is contained in:
GanyusLeftHorn
2022-06-21 12:32:17 -07:00
committed by Melledy
parent b01a29c13f
commit 63b6b805cc
13 changed files with 4396 additions and 30 deletions

View File

@@ -990,7 +990,7 @@ public class Player {
}
public void interactWith(int gadgetEntityId, InterOpTypeOuterClass.InterOpType opType) {
public void interactWith(int gadgetEntityId, GadgetInteractReq req) {
GameEntity entity = getScene().getEntityById(gadgetEntityId);
if (entity == null) {
return;
@@ -1023,7 +1023,7 @@ public class Player {
return;
}
boolean shouldDelete = gadget.getContent().onInteract(this, opType);
boolean shouldDelete = gadget.getContent().onInteract(this, req);
if (shouldDelete) {
entity.getScene().removeEntity(entity);