Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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