C# 클래스 Aura.Channel.Skills.Magic.Enchant

상속: IPreparable, ICompletable, ICancelable
파일 보기 프로젝트 열기: aura-project/aura

공개 메소드들

메소드 설명
Burn ( Creature creature, Item item, Prop campfire, bool enchantersBurn ) : bool

Handles item burning, retruns whether it was successful.

Cancel ( Creature creature, Skill skill ) : void

Cancel actions.

Complete ( Creature creature, Skill skill, Packet packet ) : void

Completes skill, applying the enchant.

GetChance ( Creature creature, Item rightHand, SkillId skillId, OptionSetData optionSetData ) : float

Returns success chance, based on skill, option set, and powder used. Unofficial. It kinda matches the debug output of the client, but it is a little off.

Prepare ( Creature creature, Skill skill, Packet packet ) : bool

Prepares skill.

비공개 메소드들

메소드 설명
BurnTraining ( Skill skill, bool enchantSuccess, bool powderSuccess ) : void

Handles skill training from burning.

GetDurabilityLoss ( Random rnd, SkillRank enchantRank, EnchantResult result ) : int

Returns random durability loss for rank. Returns -1 if item should be destroyed.

Reference: http://wiki.mabinogiworld.com/view/Enchant#Enchanting

GetOptionSetid ( Item enchant ) : int

Returns option set id from "enchant scrolls", based on their data.

Training ( Skill skill, EnchantResult result ) : void

Handles skill training from enchanting.

메소드 상세

Burn() 공개 메소드

Handles item burning, retruns whether it was successful.
public Burn ( Creature creature, Item item, Prop campfire, bool enchantersBurn ) : bool
creature Aura.Channel.World.Entities.Creature
item Item
campfire Aura.Channel.World.Entities.Prop
enchantersBurn bool
리턴 bool

Cancel() 공개 메소드

Cancel actions.
public Cancel ( Creature creature, Skill skill ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
리턴 void

Complete() 공개 메소드

Completes skill, applying the enchant.
public Complete ( Creature creature, Skill skill, Packet packet ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
리턴 void

GetChance() 공개 정적인 메소드

Returns success chance, based on skill, option set, and powder used. Unofficial. It kinda matches the debug output of the client, but it is a little off.
public static GetChance ( Creature creature, Item rightHand, SkillId skillId, OptionSetData optionSetData ) : float
creature Aura.Channel.World.Entities.Creature
rightHand Item
skillId SkillId
optionSetData OptionSetData
리턴 float

Prepare() 공개 메소드

Prepares skill.
public Prepare ( Creature creature, Skill skill, Packet packet ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
리턴 bool