add shadow crystal icon

This commit is contained in:
gymnast86
2026-06-25 08:57:34 -07:00
parent 830b560933
commit b8f69e82dd
5 changed files with 13 additions and 5 deletions
+2 -5
View File
@@ -28,16 +28,13 @@
#include <cstring>
#include <cstdio>
#if TARGET_PC
#include "dusk/randomizer/game/verify_item_functions.h"
#include "dusk/randomizer/game/tools.h"
#endif
#if TARGET_PC
#include "dusk/game_clock.h"
#include "dusk/menu_pointer.h"
#include "dusk/settings.h"
#include "dusk/ui/touch_controls.hpp"
#include "dusk/randomizer/game/verify_item_functions.h"
#include "dusk/randomizer/game/tools.h"
#endif
typedef void (dMenu_Ring_c::*initFunc)();
+8
View File
@@ -15,7 +15,10 @@
#include <cstring>
#if TARGET_PC
#include "dusk/string.hpp"
#include "battery/embed.hpp"
#endif
enum ITEMICON_RES_FILE_ID {
ITEMICON_BTI_ARI_MESU_00=0x3,
@@ -815,6 +818,11 @@ int dMeter2Info_c::readItemTexture(u8 i_itemNo, void* i_texBuf1, J2DPicture* i_p
} else if ((itemType == ItemType_POU_FIRE || itemType == ItemType_FAIRY || itemType == ItemType_BEE_CHILD || itemType == ItemType_WORM) && i_texBuf3 == NULL) {
u32 size = JKRReadIdxResource(i_texBuf1, 0xC00, get2ndTexture(itemType), dComIfGp_getItemIconArchive());
JUT_ASSERT(1222, size != 0);
#if TARGET_PC
} else if (randomizer_IsActive() && i_itemNo == dItemNo_Randomizer_MAGIC_LV1_e) {
auto shadowCrystalBti = b::embed<RANDO_ASSETS_PATH "textures/shadow_crystal.bti">();
std::memcpy(i_texBuf1, shadowCrystalBti.data(), shadowCrystalBti.size());
#endif
} else {
u32 size;
if (param_9 >= 0) {