feat: add endpoints to unlock all items for players, including cosmetics and hair dyes

This commit is contained in:
Alexa
2026-06-06 23:47:49 +03:00
parent 73d77dffb6
commit 657402b613
4 changed files with 135 additions and 3 deletions
+7
View File
@@ -94,6 +94,13 @@ public class StoreService(DorkNetDbContext db, LevelService level, IConfiguratio
("hairdye-pastel-pink", "Permanent Maker Mauve Hair Dye", "[hairdyepotionconsumable_pastelpink]", "G129V_kVXkSLN2OG8EjSqQ"),
};
/// <summary>Every permanent hair-dye store slug — used by the admin
/// "unlock all items" action to drop the whole hair-dye set into a
/// player's <see cref="PlayerInventoryEntity"/> (hair dyes are owned as
/// consumable slugs, not avatar GUIDs).</summary>
public static IEnumerable<string> AllHairDyeSlugs =>
PermanentHairDyes.Select(d => d.Slug);
private bool EnableWatchGiftDrops =>
config.GetValue("Store:EnableWatchGiftDrops", true);