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 = hostility;
55 if (randomPointInRadius3 !=
null)
60 chara3.hostility = hostility;
78 return thing.trait.CanBeDestroyed && thing.things.Count == 0 && thing.invY != 1 && thing.trait.CanBeStolen && !thing.trait.CanOnlyCarry && !thing.IsUnique && !thing.
isEquipped;
79 }, onlyAccessible:
true);
80 Thing t = ((list2.Count > 0) ? list2.RandomItem() :
null);
83 GameLang.refDrama1 = (GameLang.refDrama2 =
"mobPity".lang());
88 GameLang.refDrama2 = t.
Name;
90 LayerDrama.refAction1 = delegate
101 LayerDrama.refAction2 = delegate
107 foreach (
Chara item2
in list)
115 item2.hostility = hostility5;
126 for (
int num2 = 0; num2 <
enemies; num2++)
131 chara4.hostility = hostility;
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)
bool HasKeyItem(string alias)
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, int addLv=0)
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)