mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-22 07:32:32 +01:00
feat(diva): implement Diva Defense point accumulation (#168)
RE'd putAdd_ud_point (FUN_114fd490) and putAdd_ud_tactics_point (FUN_114fe9c0) from the ZZ client DLL via Ghidra decompilation. MsgMhfAddUdPoint fields: QuestPoints (sum of 11 category accumulators earned per quest) and BonusPoints (kiju prayer song multiplier extra). MsgMhfAddUdTacticsPoint fields: QuestID and TacticsPoints. Adds diva_points table (migration 0009) for per-character per-event point tracking, with UPSERT-based atomic accumulation in the handler.
This commit is contained in:
@@ -324,6 +324,9 @@ type DivaRepo interface {
|
||||
DeleteEvents() error
|
||||
InsertEvent(startEpoch uint32) error
|
||||
GetEvents() ([]DivaEvent, error)
|
||||
AddPoints(charID uint32, eventID uint32, questPoints, bonusPoints uint32) error
|
||||
GetPoints(charID uint32, eventID uint32) (questPoints, bonusPoints int64, err error)
|
||||
GetTotalPoints(eventID uint32) (questPoints, bonusPoints int64, err error)
|
||||
}
|
||||
|
||||
// MiscRepo defines the contract for miscellaneous data access.
|
||||
|
||||
Reference in New Issue
Block a user