43 public override void SetName(ref
string s)
69 LayerDrama.currentReligion =
Deity;
137 Msg.
Say(
"nothingHappens");
143 Msg.
Say(
"nothingHappens");
169 Msg.
Say(
"nothingHappens");
177 Msg.
Say(
"nothingHappens");
206 offeringValue = offeringValue * (c.
HasElement(1228) ? 130 : 100) / 100;
207 if (takeoverMod == 0)
209 if (offeringValue >= 200)
214 else if (offeringValue >= 100)
218 else if (offeringValue >= 50)
232 int num = Mathf.Max(c.
Evalue(306), 1);
234 int value = orCreateElement.
Value;
237 if (orCreateElement.
vBase >= num)
243 num2 = Mathf.Clamp(orCreateElement.
vBase * 100 / num / 25, 0, 3);
245 if (num2 == 4 || orCreateElement.
Value != value)
249 Debug.Log(offeringValue +
"/" + orCreateElement.
Value +
"/" + orCreateElement.
vExp);
250 if (orCreateElement.
Value > num * 8 / 10)
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
ElementContainerCard elements
bool HasElement(int ele, int req=1)
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
virtual void SetBlessedState(BlessedState s)
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
BlessedState blessedState
void Say(string lang, string ref1=null, string ref2=null)
void RefreshFaithElement()
static FactionBranch Branch
static Effect Get(Effect original)
void Play(float delay, Point from, float fixY=0f, Point to=null, Sprite sprite=null)
void ModExp(int ele, int a, bool chain=false)
Element SetBase(string alias, int v, int potential=0)
Element GetOrCreateElement(Element ele)
ReligionManager religions
static LayerDragGrid CreateOffering(TraitAltar altar)
static LayerDrama Activate(string book, string idSheet, string idStep, Chara target=null, Card ref1=null, string tag="")
static string SayNothingHappen()
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Religion GetRandomReligion(bool onlyJoinable=true, bool includeMinor=false)
int GetOfferingValue(Thing t, int num=-1)
SourceReligion.Row source
static Thing Reforge(string id, Point pos=null, bool first=true)
void PunishTakeOver(Chara c)
void Talk(string idTalk, Card c=null, Card agent=null)
Thing Identify(bool show=true, IDTSource idtSource=IDTSource.Identify)
override void OnCreate(int lv)
override bool CanOffer(Card c)
override void SetName(ref string s)
void _OnOffer(Chara c, Thing t, int takeoverMod=0)
override void TrySetAct(ActPlan p)
override bool CanOnlyCarry
void OnOffer(Chara c, Thing t)
override void OnImportMap()
string GetParam(int i, string def=null)