1using System.Collections.Generic;
14 if (
item.host !=
null ||
item.IsMultisize)
28 if (!
item.trait.CanJoinPartyResident)
47 public static void Ride(
Chara host,
Chara t,
bool parasite =
false,
bool talk =
true)
53 Unride(host, parasite:
true);
56 host.
Say(
"parasite", host, t);
60 if (host.
ride !=
null)
65 host.
Say(
"ride", host, t);
74 if (t.
race.tag.Contains(
"ride"))
78 if (t.
race.tag.Contains(
"noRide"))
92 t.
Talk(parasite ?
"parasite" :
"ride");
101 public static void Unride(
Chara host,
bool parasite =
false,
bool talk =
true)
107 host.parasite =
null;
108 host.
Say(
"parasite_unride", host, chara);
114 host.
Say(
"ride_unride", host, chara);
120 chara.
Talk(parasite ?
"parasite_unride" :
"ride_unride",
null,
null, forceSync:
true);
127 if (randomPoint !=
null)
static void Ride(Chara host, Chara t, bool parasite=false, bool talk=true)
static void Unride(Chara host, bool parasite=false, bool talk=true)
bool HasElement(int ele, int req=1)
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
void Talk(string idTopic, string ref1=null, string ref2=null, bool forceSync=false)
void MoveImmediate(Point p, bool focus=true, bool cancelAI=true)
void Say(string lang, string ref1=null, string ref2=null)
void Refresh(bool calledRecursive=false)
bool HasCondition(string alias)
override CardRenderer _CreateRenderer()
override bool IsPCFaction
void MakeAlly(bool msg=true)
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
void AddMemeber(Chara c, bool showMsg=false)
List< Chara > ListCharas()
Point GetRandomPoint(int radius, bool requireLos=true, bool allowChara=true, bool allowBlocked=false, int tries=100)