feat: update

This commit is contained in:
2026-04-17 22:18:04 +08:00
parent ff0a2e0f41
commit b492dc99b6
2 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -563,7 +563,7 @@ const COSMETIC_MAPPING = {
func apply_loadout(character_node: Node3D) -> void:
"""Apply equipped cosmetics from UserProfileManager.loadout onto the active character model.
It uses COSMETIC_MAPPING to dynamically swap visibility and materials of internal meshes."""
if not has_node("/root/UserProfileManager"):
if not Engine.get_main_loop().root.has_node("UserProfileManager"):
return
var loadout: Dictionary = UserProfileManager.loadout
+9 -4
View File
@@ -418,10 +418,15 @@ function rpcBuyCurrency(ctx, logger, nk, payload) {
var changeset = { "gold": 0, "star": 0 };
if (packageId === "gold_pack_1") changeset["gold"] = 1000;
else if (packageId === "gold_pack_2") changeset["gold"] = 5000;
else if (packageId === "star_pack_1") changeset["star"] = 100;
else if (packageId === "star_pack_2") changeset["star"] = 500;
if (packageId === "gold_100") changeset["gold"] = 100;
else if (packageId === "gold_500") changeset["gold"] = 550;
else if (packageId === "gold_1000") changeset["gold"] = 1150;
else if (packageId === "gold_2000") changeset["gold"] = 2400;
else if (packageId === "gold_5000") changeset["gold"] = 6250;
else if (packageId === "gold_10000") changeset["gold"] = 13000;
else if (packageId === "star_100") { changeset["star"] = 100; changeset["gold"] = -500; }
else if (packageId === "star_250") { changeset["star"] = 250; changeset["gold"] = -1100; }
else if (packageId === "star_600") { changeset["star"] = 600; changeset["gold"] = -2500; }
else throw new Error("Invalid package ID");
try {