Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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