mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-02-10 09:49:39 +08:00
Added customization unlock overrides
This commit is contained in:
@@ -360,7 +360,9 @@ class ChuniFrontend(FE_Base):
|
||||
if rows:
|
||||
for row in rows:
|
||||
# Only include items that are either available by default or in the user unlocked list
|
||||
if row["defaultHave"] or row["mapIconId"] in user_unlocked_items:
|
||||
if row["defaultHave"] or \
|
||||
row["mapIconId"] in user_unlocked_items or \
|
||||
self.game_cfg.mods.forced_item_unlocks("map_icons"):
|
||||
item = dict()
|
||||
item["id"] = row["mapIconId"]
|
||||
item["name"] = row["name"]
|
||||
@@ -375,7 +377,9 @@ class ChuniFrontend(FE_Base):
|
||||
if rows:
|
||||
for row in rows:
|
||||
# Only include items that are either available by default or in the user unlocked list
|
||||
if row["defaultHave"] or row["voiceId"] in user_unlocked_items:
|
||||
if row["defaultHave"] or \
|
||||
row["voiceId"] in user_unlocked_items or \
|
||||
self.game_cfg.mods.forced_item_unlocks("system_voices"):
|
||||
item = dict()
|
||||
item["id"] = row["voiceId"]
|
||||
item["name"] = row["name"]
|
||||
@@ -390,7 +394,9 @@ class ChuniFrontend(FE_Base):
|
||||
if rows:
|
||||
for row in rows:
|
||||
# Only include items that are either available by default or in the user unlocked list
|
||||
if row["defaultHave"] or row["nameplateId"] in user_unlocked_items:
|
||||
if row["defaultHave"] or \
|
||||
row["nameplateId"] in user_unlocked_items or \
|
||||
self.game_cfg.mods.forced_item_unlocks("nameplates"):
|
||||
item = dict()
|
||||
item["id"] = row["nameplateId"]
|
||||
item["name"] = row["name"]
|
||||
@@ -405,7 +411,9 @@ class ChuniFrontend(FE_Base):
|
||||
if rows:
|
||||
for row in rows:
|
||||
# Only include items that are either available by default or in the user unlocked list
|
||||
if row["defaultHave"] or row["trophyId"] in user_unlocked_items:
|
||||
if row["defaultHave"] or \
|
||||
row["trophyId"] in user_unlocked_items or \
|
||||
self.game_cfg.mods.forced_item_unlocks("trophies"):
|
||||
item = dict()
|
||||
item["id"] = row["trophyId"]
|
||||
item["name"] = row["name"]
|
||||
@@ -420,7 +428,9 @@ class ChuniFrontend(FE_Base):
|
||||
if rows:
|
||||
for row in rows:
|
||||
# Only include items that are either available by default or in the user unlocked list
|
||||
if row["defaultHave"] or row["characterId"] in user_unlocked_items:
|
||||
if row["defaultHave"] or \
|
||||
row["characterId"] in user_unlocked_items or \
|
||||
self.game_cfg.mods.forced_item_unlocks("character_icons"):
|
||||
item = dict()
|
||||
item["id"] = row["characterId"]
|
||||
item["name"] = row["name"]
|
||||
@@ -435,7 +445,9 @@ class ChuniFrontend(FE_Base):
|
||||
if rows:
|
||||
for row in rows:
|
||||
# Only include items that are either available by default or in the user unlocked list
|
||||
if row["defaultHave"] or row["avatarAccessoryId"] in user_unlocked_items:
|
||||
if row["defaultHave"] or \
|
||||
row["avatarAccessoryId"] in user_unlocked_items or \
|
||||
self.game_cfg.mods.forced_item_unlocks("avatar_accessories"):
|
||||
item = dict()
|
||||
item["id"] = row["avatarAccessoryId"]
|
||||
item["name"] = row["name"]
|
||||
|
||||
Reference in New Issue
Block a user