mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-09 02:50:06 -04:00
ItemService improvements (#2322)
* ItemService improvements * Move Poe increment to item
This commit is contained in:
+17
-1
@@ -741,8 +741,12 @@ void item_func_ARMOR() {}
|
||||
void item_func_WEAR_ZORA() {}
|
||||
|
||||
void item_func_MAGIC_LV1() {
|
||||
#if TARGET_PC
|
||||
dComIfGs_onEventBit(0xD04);
|
||||
#else
|
||||
dComIfGp_setItemMagicCount(16);
|
||||
dComIfGp_setItemMaxMagicCount(16);
|
||||
#endif
|
||||
}
|
||||
|
||||
void item_func_DUNGEON_EXIT_2() {
|
||||
@@ -1152,7 +1156,15 @@ void item_func_M_MAYFLY() {}
|
||||
|
||||
void item_func_F_MAYFLY() {}
|
||||
|
||||
void item_func_POU_SPIRIT() {}
|
||||
void item_func_POU_SPIRIT() {
|
||||
#if TARGET_PC
|
||||
dComIfGs_addPohSpiritNum();
|
||||
if (dComIfGs_getPohSpiritNum() == 20) {
|
||||
/* dSv_event_flag_c::F_0457 - Castle Town - Revived cat */
|
||||
dComIfGs_onEventBit(dSv_event_flag_c::saveBitLabels[457]);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void item_func_ANCIENT_DOCUMENT() {
|
||||
dComIfGs_setItem(SLOT_22, dItemNo_ANCIENT_DOCUMENT_e);
|
||||
@@ -1411,7 +1423,11 @@ int item_getcheck_func_WEAR_ZORA() {
|
||||
}
|
||||
|
||||
int item_getcheck_func_MAGIC_LV1() {
|
||||
#if TARGET_PC
|
||||
return dComIfGs_isEventBit(0xD04);
|
||||
#else
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
int item_getcheck_func_DUNGEON_EXIT_2() {
|
||||
|
||||
Reference in New Issue
Block a user