Players now get shadow siege requests/permits from spending energy

This commit is contained in:
Melledy
2026-07-21 04:26:50 -07:00
parent 1a88269905
commit 774d119f2b
3 changed files with 96 additions and 34 deletions
@@ -609,6 +609,9 @@ public class Player implements GameDatabaseObject {
// Trigger quest
this.trigger(QuestCondition.EnergyDeplete, amount);
// Trigger trace hunt
this.getTraceHuntManager().onSpendEnergy(amount, change);
// Complete
return change;
}
@@ -727,6 +730,9 @@ public class Player implements GameDatabaseObject {
this.getInventory().addItem(GameConstants.JOINT_DRILL_TICKET_ID, 3 - tickets);
}
// Reset daily trace hunt items
this.getTraceHuntManager().resetDailyQuota();
// Check to reset weeklies
if (resetWeekly) {
// Add weekly boss entry item
@@ -1312,10 +1318,12 @@ public class Player implements GameDatabaseObject {
// Trace hunt
proto.getMutableHuntPermit()
.setTid(GameConstants.TRACE_HUNT_PERMIT_ITEM_ID)
.setDailyCount(this.getTraceHuntManager().getDailyPermits())
.setGrantedCount(this.getTraceHuntManager().getHuntPermits());
proto.getMutableTraceRequest()
.setTid(GameConstants.TRACE_HUNT_REQUEST_ITEM_ID)
.setDailyCount(this.getTraceHuntManager().getDailyRequests())
.setGrantedCount(this.getTraceHuntManager().getTraceRequests());
// Complete