2using System.Collections.Generic;
19 List<Chara> list =
new List<Chara>();
25 if (randomPointInRadius !=
null)
29 chara.hostility = hostility2;
47 return t.trait.CanBeDestroyed && t.things.Count == 0 && t.invY != 1 && t.trait.CanBeStolen && !t.trait.CanOnlyCarry && !t.IsUnique && !t.
isEquipped;
48 }, onlyAccessible:
true);
49 Thing t2 = ((list2.Count > 0) ? list2.RandomItem() :
null);
52 GameLang.refDrama1 = (GameLang.refDrama2 =
"mobPity".lang());
57 GameLang.refDrama2 = t2.
Name;
59 LayerDrama.refAction1 = delegate
70 LayerDrama.refAction2 = delegate
76 foreach (
Chara item2
in list)
84 item2.hostility = hostility5;
94 for (
int j = 0; j <
enemies; j++)
99 chara2.hostility = hostility2;
void Talk(string idTopic, string ref1=null, string ref2=null, bool forceSync=false)
void ShowEmo(Emo _emo=Emo.none, float duration=0f, bool skipSame=true)
static Chara CreateFromFilter(string id, int lv=-1, int levelRange=-1)
static Chara Create(string id, int lv=-1)
bool HasCondition(string alias)
static int rndHalf(int a)
Point GetRandomPointInRadius(int minRadius, int maxRadius, bool requireLos=true, bool allowChara=true, bool allowBlocked=false, int tries=2000)
Point GetRandomPoint(int radius, bool requireLos=true, bool allowChara=true, bool allowBlocked=false, int tries=100)
static SpawnList Get(string id, Func< SourceChara.Row, bool > func)
static SpawnSetting Encounter(int lv)
static SpawnSetting Mob(string id, string idEle=null, int fixedLv=-1)
List< Thing > List(Func< Thing, bool > func, bool onlyAccessible=false)
static void MakeBaby(Chara c, int baby)
Chara SpawnMob(Point pos=null, SpawnSetting setting=null)
Card AddCard(Card t, Point point)