C# Class Aura.Mabi.Structs.UpgradeEffect

Show file Open project: aura-project/aura Class Usage Examples

Public Methods

Method Description
SetBrokenCheck ( bool broken ) : void

Changes effect to check if the item is broken (0 durability).

SetConditionCheck ( int conditionId ) : void

Changes effect to check for the given condition.

SetMonthCheck ( Month month ) : void

Changes effect to check if today is the given Erinn month.

SetPtjCheck ( PtjType ptjType, int count ) : void

Changes effect to check if the given PTJ has been done x times.

SetSkillCheck ( SkillId skillId, UpgradeCheckType checkType, SkillRank rank ) : void

Changes effect to check for a skill rank.

SetSkillEffect ( SkillId skillId, short skillVar, short value, UpgradeValueType valueType ) : void

Changes effect to give a skill bonus.

SetStatCheck ( UpgradeStat stat, UpgradeCheckType checkType, short value, UpgradeValueType valueType ) : void

Changes effect to check a stat for a value.

SetStatEffect ( UpgradeStat stat, short value, UpgradeValueType valueType ) : void

Changes effect to give a stat bonus.

SetSummonCheck ( UpgradeStat summonStat ) : void

Changes effect to check for the given summon to be there.

SetSupportCheck ( SupportRace race ) : void

Changes effect to check if the given race is supported by the item owner.

SetTitleCheck ( int titleId ) : void

Changes effect to check if the creature uses the given title.

SetType ( UpgradeType type ) : void

Changes effect's type.

UpgradeEffect ( UpgradeType type ) : System.Runtime.InteropServices

Initializes upgrade effect, setting required default values. You should generally use this constructor!

Method Details

SetBrokenCheck() public method

Changes effect to check if the item is broken (0 durability).
public SetBrokenCheck ( bool broken ) : void
broken bool False = intact, True = broken.
return void

SetConditionCheck() public method

Changes effect to check for the given condition.
public SetConditionCheck ( int conditionId ) : void
conditionId int
return void

SetMonthCheck() public method

Changes effect to check if today is the given Erinn month.
public SetMonthCheck ( Month month ) : void
month Month
return void

SetPtjCheck() public method

Changes effect to check if the given PTJ has been done x times.
public SetPtjCheck ( PtjType ptjType, int count ) : void
ptjType PtjType
count int
return void

SetSkillCheck() public method

Changes effect to check for a skill rank.
public SetSkillCheck ( SkillId skillId, UpgradeCheckType checkType, SkillRank rank ) : void
skillId SkillId
checkType UpgradeCheckType SkillRankEqual, SkillRankGreaterThan, or SkillRankLowerThan
rank SkillRank
return void

SetSkillEffect() public method

Changes effect to give a skill bonus.
public SetSkillEffect ( SkillId skillId, short skillVar, short value, UpgradeValueType valueType ) : void
skillId SkillId
skillVar short
value short
valueType UpgradeValueType
return void

SetStatCheck() public method

Changes effect to check a stat for a value.
public SetStatCheck ( UpgradeStat stat, UpgradeCheckType checkType, short value, UpgradeValueType valueType ) : void
stat UpgradeStat
checkType UpgradeCheckType
value short
valueType UpgradeValueType
return void

SetStatEffect() public method

Changes effect to give a stat bonus.
public SetStatEffect ( UpgradeStat stat, short value, UpgradeValueType valueType ) : void
stat UpgradeStat
value short
valueType UpgradeValueType
return void

SetSummonCheck() public method

Changes effect to check for the given summon to be there.
public SetSummonCheck ( UpgradeStat summonStat ) : void
summonStat UpgradeStat
return void

SetSupportCheck() public method

Changes effect to check if the given race is supported by the item owner.
public SetSupportCheck ( SupportRace race ) : void
race SupportRace
return void

SetTitleCheck() public method

Changes effect to check if the creature uses the given title.
public SetTitleCheck ( int titleId ) : void
titleId int
return void

SetType() public method

Changes effect's type.
public SetType ( UpgradeType type ) : void
type UpgradeType
return void

UpgradeEffect() public method

Initializes upgrade effect, setting required default values. You should generally use this constructor!
public UpgradeEffect ( UpgradeType type ) : System.Runtime.InteropServices
type UpgradeType
return System.Runtime.InteropServices