} //移动 public int active_Visit(uint seer_id, uint person_id) { lc_Seer seer = GetObject <lc_Seer>(seer_id); uint rel_id = GetRelShip <STU_PEO_REL>(seer_id).rel_id; lc_Religion rel = GetObject <lc_Religion>(rel_id); lc_Personality person = GetObject <lc_Personality>(person_id); int chgnum = seer.m_eloquence * 2 - person.m_risist; if (chgnum <= 0) { return(5); /*转变程度小于0*/ } if (GetRelShip <STU_PEO_REL>(person_id).rel_id == DEFREL) { int ret = SetPeoRel(person.obj_id, rel.obj_id, chgnum); if (ret == 3) { return(3); /*增加该人物转变*/ } else if (ret == 4) { return(4); /*成功转变该人物*/ } else { return(-1); /*逻辑错误*/ } } else { return(2); /*该人物已信仰其他宗教*/ } } //拜访
} //构造函数 public lc_Personality(lc_Personality srcTag) : base(srcTag) { //this.m_type = srcTag.m_type; this.belong_cty = srcTag.belong_cty; this.m_infl = srcTag.m_infl; this.m_profession = srcTag.m_profession; this.m_risist = srcTag.m_risist; } //拷贝构造函数