1using System.Collections.Generic;
19 if (
item.host !=
null ||
item.IsMultisize)
33 if (!
item.trait.CanJoinPartyResident)
52 public static void Ride(
Chara host,
Chara t,
bool parasite =
false,
bool talk =
true)
58 Unride(host, parasite:
true);
61 host.
Say(
"parasite", host, t);
65 if (host.
ride !=
null)
70 host.
Say(
"ride", host, t);
79 if (t.
race.tag.Contains(
"ride"))
83 if (t.
race.tag.Contains(
"noRide"))
97 t.
Talk(parasite ?
"parasite" :
"ride");
109 if (host !=
null && (host.
parasite == mount || host.
ride == mount))
115 public static void Unride(
Chara host,
bool parasite =
false,
bool talk =
true)
121 host.parasite =
null;
122 host.
Say(
"parasite_unride", host, chara);
128 host.
Say(
"ride_unride", host, chara);
134 chara.
Talk(parasite ?
"parasite_unride" :
"ride_unride",
null,
null, forceSync:
true);
141 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)
static void Unride(Chara host, Chara mount, bool talk=true)
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)
bool HasElement(int ele, bool includeNagative=false)
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 SayInvalidAction()
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)