mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-06 07:27:47 +01:00
Merge pull request #1718 from ultima-soul/form_change_item_data
Assign FORM_ITEM_USE Constants
This commit is contained in:
commit
2e9eb0e490
@ -1191,12 +1191,12 @@ const struct Item gItems[] =
|
|||||||
.itemId = ITEM_ESCAPE_ROPE,
|
.itemId = ITEM_ESCAPE_ROPE,
|
||||||
.description = sEscapeRopeDesc,
|
.description = sEscapeRopeDesc,
|
||||||
#if I_KEY_ESCAPE_ROPE >= GEN_8
|
#if I_KEY_ESCAPE_ROPE >= GEN_8
|
||||||
.price = 0,
|
.price = 0,
|
||||||
.importance = 1,
|
.importance = 1,
|
||||||
.pocket = POCKET_KEY_ITEMS,
|
.pocket = POCKET_KEY_ITEMS,
|
||||||
#else
|
#else
|
||||||
.price = 1000,
|
.price = 1000,
|
||||||
.pocket = POCKET_ITEMS,
|
.pocket = POCKET_ITEMS,
|
||||||
#endif
|
#endif
|
||||||
.type = ITEM_USE_FIELD,
|
.type = ITEM_USE_FIELD,
|
||||||
.fieldUseFunc = ItemUseOutOfBattle_EscapeRope,
|
.fieldUseFunc = ItemUseOutOfBattle_EscapeRope,
|
||||||
@ -1504,6 +1504,7 @@ const struct Item gItems[] =
|
|||||||
#ifdef POKEMON_EXPANSION
|
#ifdef POKEMON_EXPANSION
|
||||||
.type = ITEM_USE_PARTY_MENU,
|
.type = ITEM_USE_PARTY_MENU,
|
||||||
.fieldUseFunc = ItemUseOutOfBattle_FormChange_ConsumedOnUse,
|
.fieldUseFunc = ItemUseOutOfBattle_FormChange_ConsumedOnUse,
|
||||||
|
.secondaryId = FORM_ITEM_USE,
|
||||||
#else
|
#else
|
||||||
.type = ITEM_USE_BAG_MENU,
|
.type = ITEM_USE_BAG_MENU,
|
||||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||||
@ -1521,6 +1522,7 @@ const struct Item gItems[] =
|
|||||||
#ifdef POKEMON_EXPANSION
|
#ifdef POKEMON_EXPANSION
|
||||||
.type = ITEM_USE_PARTY_MENU,
|
.type = ITEM_USE_PARTY_MENU,
|
||||||
.fieldUseFunc = ItemUseOutOfBattle_FormChange_ConsumedOnUse,
|
.fieldUseFunc = ItemUseOutOfBattle_FormChange_ConsumedOnUse,
|
||||||
|
.secondaryId = FORM_ITEM_USE,
|
||||||
#else
|
#else
|
||||||
.type = ITEM_USE_BAG_MENU,
|
.type = ITEM_USE_BAG_MENU,
|
||||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||||
@ -1538,6 +1540,7 @@ const struct Item gItems[] =
|
|||||||
#ifdef POKEMON_EXPANSION
|
#ifdef POKEMON_EXPANSION
|
||||||
.type = ITEM_USE_PARTY_MENU,
|
.type = ITEM_USE_PARTY_MENU,
|
||||||
.fieldUseFunc = ItemUseOutOfBattle_FormChange_ConsumedOnUse,
|
.fieldUseFunc = ItemUseOutOfBattle_FormChange_ConsumedOnUse,
|
||||||
|
.secondaryId = FORM_ITEM_USE,
|
||||||
#else
|
#else
|
||||||
.type = ITEM_USE_BAG_MENU,
|
.type = ITEM_USE_BAG_MENU,
|
||||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||||
@ -1555,6 +1558,7 @@ const struct Item gItems[] =
|
|||||||
#ifdef POKEMON_EXPANSION
|
#ifdef POKEMON_EXPANSION
|
||||||
.type = ITEM_USE_PARTY_MENU,
|
.type = ITEM_USE_PARTY_MENU,
|
||||||
.fieldUseFunc = ItemUseOutOfBattle_FormChange_ConsumedOnUse,
|
.fieldUseFunc = ItemUseOutOfBattle_FormChange_ConsumedOnUse,
|
||||||
|
.secondaryId = FORM_ITEM_USE,
|
||||||
#else
|
#else
|
||||||
.type = ITEM_USE_BAG_MENU,
|
.type = ITEM_USE_BAG_MENU,
|
||||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||||
@ -5360,6 +5364,7 @@ const struct Item gItems[] =
|
|||||||
#ifdef POKEMON_EXPANSION
|
#ifdef POKEMON_EXPANSION
|
||||||
.type = ITEM_USE_PARTY_MENU,
|
.type = ITEM_USE_PARTY_MENU,
|
||||||
.fieldUseFunc = ItemUseOutOfBattle_FormChange,
|
.fieldUseFunc = ItemUseOutOfBattle_FormChange,
|
||||||
|
.secondaryId = FORM_ITEM_USE_TIME,
|
||||||
#else
|
#else
|
||||||
.type = ITEM_USE_BAG_MENU,
|
.type = ITEM_USE_BAG_MENU,
|
||||||
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user