Fix wrong command to get armor level. (#6593)

This commit is contained in:
Kanin Temsrisuk 2022-02-07 02:37:46 +07:00 committed by GitHub
parent 70220e16f0
commit a1b7fab19b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -47484,7 +47484,7 @@ Body:
bonus2 bSubEle,Ele_Neutral,20; bonus2 bSubEle,Ele_Neutral,20;
.@r = getrefine(); .@r = getrefine();
.@rate = ((getrefine() < 12) ? 25 : -25); .@rate = ((getrefine() < 12) ? 25 : -25);
if (getiteminfo(getequipid(EQI_COMPOUND_ON), ITEMINFO_ARMORLEVEL) == 2) { if (getequiparmorlv() == 2) {
.@rate += 8; .@rate += 8;
} }
bonus2 bMagicSubDefEle,Ele_Dark,.@rate; bonus2 bMagicSubDefEle,Ele_Dark,.@rate;
@ -47515,7 +47515,7 @@ Body:
bonus2 bAddClass,Class_All,10; bonus2 bAddClass,Class_All,10;
bonus bMatkRate,10; bonus bMatkRate,10;
} }
if (getiteminfo(getequipid(EQI_COMPOUND_ON), ITEMINFO_ARMORLEVEL) == 2) { if (getequiparmorlv() == 2) {
bonus bRes,50; bonus bRes,50;
} }
- Id: 300377 - Id: 300377
@ -47570,7 +47570,7 @@ Body:
.@rate = (getrefine() < 12) ? -25 : 25; .@rate = (getrefine() < 12) ? -25 : 25;
bonus2 bSubSize,Size_All,.@rate; bonus2 bSubSize,Size_All,.@rate;
bonus2 bMagicSubSize,Size_All,.@rate; bonus2 bMagicSubSize,Size_All,.@rate;
if (getiteminfo(getequipid(EQI_COMPOUND_ON), ITEMINFO_ARMORLEVEL) == 2) { if (getequiparmorlv() == 2) {
bonus bRes,50; bonus bRes,50;
bonus bMRes,50; bonus bMRes,50;
} }
@ -47594,7 +47594,7 @@ Body:
bonus bCritical,15; bonus bCritical,15;
bonus bCritAtkRate,10; bonus bCritAtkRate,10;
} }
if (getiteminfo(getequipid(EQI_COMPOUND_ON), ITEMINFO_ARMORLEVEL) == 2) { if (getequiparmorlv() == 2) {
bonus bCRate,5; bonus bCRate,5;
} }
- Id: 300381 - Id: 300381

View File

@ -8575,6 +8575,7 @@
export_constant(ITEMINFO_MAGICATTACK); export_constant(ITEMINFO_MAGICATTACK);
export_constant(ITEMINFO_ID); export_constant(ITEMINFO_ID);
export_constant(ITEMINFO_AEGISNAME); export_constant(ITEMINFO_AEGISNAME);
export_constant(ITEMINFO_ARMORLEVEL);
export_constant(ITEMINFO_SUBTYPE); export_constant(ITEMINFO_SUBTYPE);
/* refine types */ /* refine types */