2using System.Collections.Generic;
19 List<Chara> list =
new List<Chara>();
28 if (randomPointInRadius2 !=
null)
37 string[] source =
new string[5] {
"merc",
"merc_archer",
"merc_mage",
"merc_warrior",
"dog_hound" };
41 chara2.hostility = hostility2;
55 if (randomPointInRadius3 !=
null)
59 chara3.hostility = hostility2;
77 return t.trait.CanBeDestroyed && t.things.Count == 0 && t.invY != 1 && t.trait.CanBeStolen && !t.trait.CanOnlyCarry && !t.IsUnique && !t.
isEquipped;
78 }, onlyAccessible:
true);
79 Thing t2 = ((list2.Count > 0) ? list2.RandomItem() :
null);
82 GameLang.refDrama1 = (GameLang.refDrama2 =
"mobPity".lang());
87 GameLang.refDrama2 = t2.
Name;
89 LayerDrama.refAction1 = delegate
100 LayerDrama.refAction2 = delegate
106 foreach (
Chara item2
in list)
114 item2.hostility = hostility6;
125 for (
int k = 0; k <
enemies; k++)
130 chara4.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)
void MakeMinion(Chara _master, MinionType type=MinionType.Default)
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)
static SpawnSetting TravelMerchant(string id, int fixedLv=-1)
List< Thing > List(Func< Thing, bool > func, bool onlyAccessible=false)
static void MakeBaby(Chara c, int baby)
Chara SpawnMob(string id, Point pos=null)
Card AddCard(Card t, Point point)