diff --git a/db/re/item_db_etc.yml b/db/re/item_db_etc.yml index 2923eab45b..567908614d 100644 --- a/db/re/item_db_etc.yml +++ b/db/re/item_db_etc.yml @@ -47484,7 +47484,7 @@ Body: bonus2 bSubEle,Ele_Neutral,20; .@r = getrefine(); .@rate = ((getrefine() < 12) ? 25 : -25); - if (getiteminfo(getequipid(EQI_COMPOUND_ON), ITEMINFO_ARMORLEVEL) == 2) { + if (getequiparmorlv() == 2) { .@rate += 8; } bonus2 bMagicSubDefEle,Ele_Dark,.@rate; @@ -47515,7 +47515,7 @@ Body: bonus2 bAddClass,Class_All,10; bonus bMatkRate,10; } - if (getiteminfo(getequipid(EQI_COMPOUND_ON), ITEMINFO_ARMORLEVEL) == 2) { + if (getequiparmorlv() == 2) { bonus bRes,50; } - Id: 300377 @@ -47570,7 +47570,7 @@ Body: .@rate = (getrefine() < 12) ? -25 : 25; bonus2 bSubSize,Size_All,.@rate; bonus2 bMagicSubSize,Size_All,.@rate; - if (getiteminfo(getequipid(EQI_COMPOUND_ON), ITEMINFO_ARMORLEVEL) == 2) { + if (getequiparmorlv() == 2) { bonus bRes,50; bonus bMRes,50; } @@ -47594,7 +47594,7 @@ Body: bonus bCritical,15; bonus bCritAtkRate,10; } - if (getiteminfo(getequipid(EQI_COMPOUND_ON), ITEMINFO_ARMORLEVEL) == 2) { + if (getequiparmorlv() == 2) { bonus bCRate,5; } - Id: 300381 diff --git a/src/map/script_constants.hpp b/src/map/script_constants.hpp index 4ace43593d..63baa5d0e2 100644 --- a/src/map/script_constants.hpp +++ b/src/map/script_constants.hpp @@ -8575,6 +8575,7 @@ export_constant(ITEMINFO_MAGICATTACK); export_constant(ITEMINFO_ID); export_constant(ITEMINFO_AEGISNAME); + export_constant(ITEMINFO_ARMORLEVEL); export_constant(ITEMINFO_SUBTYPE); /* refine types */