Implement memoir sub-status system with level-based unlocks

This commit is contained in:
Ilya Groshev
2026-04-22 14:03:26 +03:00
parent 7828de031c
commit 4dc722c5d3
12 changed files with 228 additions and 1 deletions
@@ -161,6 +161,9 @@ func ChangedTables(before, after *store.UserState) []string {
if !mapsEqualStruct(before.PartsPresets, after.PartsPresets) {
add("IUserPartsPreset")
}
if !mapsEqualStruct(before.PartsStatusSubs, after.PartsStatusSubs) {
add("IUserPartsStatusSub")
}
if !mapsEqualStruct(before.CostumeActiveSkills, after.CostumeActiveSkills) {
add("IUserCostumeActiveSkill")
}
@@ -348,6 +351,8 @@ func keyFieldsForTable(table string) []string {
return []string{"userId", "userThoughtUuid"}
case "IUserParts":
return []string{"userId", "userPartsUuid"}
case "IUserPartsStatusSub":
return []string{"userId", "userPartsUuid", "statusIndex"}
case "IUserDeckCharacter":
return []string{"userId", "userDeckCharacterUuid"}
case "IUserDeck":