AVA2 unlock P5: mount costume and mount skin

COSTUME_MOUNT=2 / COSTUME_MOUNT_SKIN=4, WEAR_COSTUME_MOUNT 25 / _SKIN 26.
port_mount.cpp summons/unsummons the horse on equip, skin overrides the
mount vnum in GetMyHorseVnum; costume subtypes no longer map onto the
armor attribute sets. db ProtoReader learns COSTUME_MOUNT_SKIN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-16 14:00:24 +09:00
co-authored by Claude Opus 5.5
parent c30258ef5e
commit fb066e7046
16 changed files with 235 additions and 4 deletions
+14
View File
@@ -523,6 +523,10 @@ int CItem::FindEquipCell(LPCHARACTER ch, int iCandidateCell)
return WEAR_COSTUME_HAIR;
else if (GetSubType() == COSTUME_SASH)
return WEAR_COSTUME_SASH;
else if (GetSubType() == COSTUME_MOUNT)
return WEAR_COSTUME_MOUNT;
else if (GetSubType() == COSTUME_MOUNT_SKIN)
return WEAR_COSTUME_MOUNT_SKIN;
}
else if (GetType() == ITEM_RING)
{
@@ -1765,6 +1769,16 @@ bool CItem::IsRideItem()
return false;
}
bool CItem::IsCostumeMount()
{
return GetType() == ITEM_COSTUME && GetSubType() == COSTUME_MOUNT;
}
bool CItem::IsCostumeMountSkin()
{
return GetType() == ITEM_COSTUME && GetSubType() == COSTUME_MOUNT_SKIN;
}
bool CItem::IsRamadanRing()
{
if (GetVnum() == UNIQUE_ITEM_RAMADAN_RING)