public override void setTemplate(NpcTemplate template) { Template = template; CStatsInit(); CharacterStat.setTemplate(template); CurHP = CharacterStat.getStat(skills2.TEffectType.b_max_hp); MaxTime = 1200; //20 минут CurrentTime = MaxTime; Level = 35; }
public virtual void setTemplate(NpcTemplate template) { Template = template; ObjID = IdFactory.Instance.nextId(); CStatsInit(); CharacterStat.setTemplate(template); CurHP = CharacterStat.getStat(skills2.TEffectType.b_max_hp); Name = template.Name; AIProcessor = new citizen(); AIProcessor.dialog = new Dictionary <string, string>(); AIProcessor.dialog.Add("fnHi", "lector001.htm"); AIProcessor.dialog.Add("fnFeudInfo", "gludio_feud_manager001.htm"); AIProcessor.dialog.Add("fnNoFeudInfo", "farm_messenger002.htm"); AIProcessor.myself = this; }