9 egg.SetSale(sale:
false);
15 if (refCard.
id ==
"chara" || refCard.
quality == 4)
29 MakeBaby(chara, (incubator ==
null) ? 2 : 3);
30 if (chara.
Evalue(1644) > 0)
32 for (
int i = 0; i < chara.
Evalue(1644); i++)
39 foreach (
Element value
in chara.elements.dict.Values)
41 if ((!(value.
source.category !=
"attribute") || !(value.
source.category !=
"skill")) && (!(value.
source.category ==
"attribute") || value.
source.tag.Contains(
"primary")) && value.
ValueWithoutLink != 0)
43 value.vTempPotential = value.vTempPotential * 2 + 100;
44 value.vPotential += 30;
47 if (!
egg.isNPCProperty)
50 if (factionBranch !=
null)
60 Msg.
Say(
"incubate", chara);
72 c.idSkin = 4 + c.idSkin * 2 +
EClass.
rnd(2);
75 case "putty_snow_gold":
95 return base.CanStackTo(to);
ElementContainerCard elements
static Chara Create(string id, int lv=-1)
void SetFeat(int id, int value=1, bool msg=false)
void SetMainElement(string id, int v=0, bool elemental=false)
void RemoveLastBodyPart(bool msg=false)
Element SetBase(string alias, int v, int potential=0)
void ChangeMemberType(Chara c, FactionMemberType type)
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
void AddMemeber(Chara c, bool showMsg=false)
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false)
void DestroyAll(Func< Thing, bool > funcExclude=null)
static Chara Incubate(Thing egg, Point pos, Card incubator=null)
override bool CanStackTo(Thing to)
static void MakeBaby(Chara c, int baby)
Card AddCard(Card t, Point point)