IPWildShapeCopyItemProperties(object, object, int)

Copies itemproperties from one item to another.

void IPWildShapeCopyItemProperties(
    object oOld,
    object oNew,
    int bWeapon = FALSE
);

Parameters

oOld

Item equipped before polymorphing.

oNew

Item equipped after polymorphing.

bWeapon

Must be TRUE if oOld is a weapon. (Default: FALSE)


Description

Special Version of Copy Item Properties for use with greater wild shape

oOld - Item equipped before polymorphing (source for item props)
oNew - Item equipped after polymorphing (target for item props)
bWeapon - Must be set TRUE when oOld is a weapon.



Remarks

Copies itemproperties from oOld to oNew, while preserving the itemproperties already on oNew.

If bWeapon is TRUE, which it should be for weapons, the itemproperties are not added if one is a ranged weapons and the other is a melee weapon.

This function is called in both x2_s2_gwildshp and nw_s2_wildshape.


Requirements

#include "x2_inc_itemprop"

Version

1.61

See Also

categories: Item Creation Functions | Item Properties Functions


 author: Lilac Soul