9 string str =
"AIWork_" + this.source.ai.IsEmpty(this.source.alias);
11 if (Type.GetType(str +
", Elin") !=
null)
13 aiwork = ClassCache.Create<
AIWork>(str,
"Elin");
20 aiwork.sourceWork = this.source;
25 public int GetLv(
Chara c)
27 if (!this.source.skill.IsEmpty())
29 return c.Evalue(this.source.skill);
35 public int GetEfficiency(
Chara c)
38 if (c.homeBranch ==
null || c.currentZone != c.homeBranch.owner)
42 if (c.currentZone ==
EClass._zone)
44 if ((!this.source.destTrait.IsEmpty() || !
this.source.workTag.IsEmpty()) && !
this.GetAI(c).SetDestination())
55 num += 30 + traitBed.owner.GetTotalQuality(
true) + traitBed.owner.Evalue(750);
58 if (this.source.alias ==
"Breeding")
60 num = num * c.race.breeder / 100;
63 return num * (100 + c.homeBranch.Evalue(3708) * 10) / 100;
72 return EClass.sources.hobbies.map[this.id];
82 return this.source.GetName();