public Range_NPCAttack_1(ICharacter character) { if (false == ParamConfig.TryGetNPCReach((NPCType)character.config.npc_type, out reach)) reach = 1; // end if this.character = character; character.config.TryGetSoundPath(id, out soundPath); if (character.config.TryGetEffectPath(id, out effectPath)) return; // end if effectPath = "npc_arrow"; } // end Range_NPCAttack_1
public NPCChase(ICharacter character) { if (false == ParamConfig.TryGetNPCReach((NPCType)character.config.npc_type, out reach)) { reach = 2; } // end if scope = reach + 2; scope = scope < 10 ? 10 : scope; this.character = character; } // end NPCChase
public Melee_NPCAttack_1(ICharacter character) { if (false == ParamConfig.TryGetNPCReach((NPCType)character.config.npc_type, out reach)) { reach = 2; } // end if this.character = character; character.config.TryGetSoundPath(id, out soundPath); character.config.TryGetEffectPath(id, out effectPath); } // end Melee_NPCAttack_1