26 public virtual string id =>
"";
95 string text =
"<color=green>";
96 for (
int i = 0; i <
source.elements.Length; i += 2)
100 text = text + Lang.words.comma +
Lang.
space;
105 return source.GetText(
"textBenefit") + Environment.NewLine + Environment.NewLine + (
IsEyth ?
"" :
"textBenefit".lang(text));
114 if (_temper == -99999)
121 return list[0].ToTitleCase().TagColor(
FontColor.Bad);
125 return list[1].ToTitleCase().TagColor(
FontColor.Bad);
129 return list[2].ToTitleCase();
133 return list[3].ToTitleCase();
137 return list[4].ToTitleCase();
141 return list[5].ToTitleCase().TagColor(
FontColor.Great);
143 return list[6].ToTitleCase().TagColor(
FontColor.Good);
178 if (t.
source._origin ==
"meat")
192 string[] cat_offer =
source.cat_offer;
193 foreach (
string key
in cat_offer)
210 v = v * (100 + Mathf.Min(t.
LV * 2, 100) + (t.
HasElement(757) ? 50 : 0)) / 100;
211 v = (int)Mathf.Clamp(Mathf.Max(v, 1f) * (float)num, 1f, 214748370f);
216 v *= cat.offer * mtp / 100;
261 string[] array =
source.rewards[1].Split(
'|');
262 string[] array2 = array;
263 foreach (
string text
in array2)
265 Reforge(text, point, text == array[0]);
306 pos.
Set(pos.GetNearestPoint(allowBlock:
false, allowChara:
false, allowInstalled:
false, ignoreCenter:
true) ?? pos);
308 foreach (
Element value
in thing.elements.dict.Values)
310 if (value.
id == 66 || value.
id == 67 || value.
id == 64 || value.
id == 65 || value.
id == 92)
320 if (value.
id == 427 || value.
id == 957 || value.
id == 105 || value.
id == 466 || value.
id == 664)
327 if (value.
id == 6650 || value.
id == 480 || value.
id == 959 || value.
id == 428 || value.
id == 640 || value.
id == 665)
334 if (value.
id == 70 || value.
id == 55 || value.
id == 56 || value.
id == 954 || value.
id == 423 || value.
id == 421)
347 case "staff_element":
358 if (!(value is
Resistance) && value.
id != 226 && value.
id != 152 && value.
id != 77)
365 if (value.
id == 60 || value.
id == 461 || value.
id == 423)
371 case "sword_muramasa2":
372 if (value.
id == 401 || value.
id == 916 || value.
id == 661)
378 case "kogitsunemaru":
386 if (value.
id == 468 || value.
id == 423 || value.
id == 463 || value.
id == 460 || value.
id == 464 || value.
id == 465)
398 pos.PlaySound(
"godbless");
423 EClass.pc.c_daysWithGod = 0;
527 if (
item.giftRank > 0)
538 c.AddCondition<
ConWrath>(2000 + (c.IsPC ? (EClass.pc.c_daysWithGod * 20) : 0));
547 Talk(
"takeoverFail");
556 c.mana.value = c.mana.value / 2;
560 c.stamina.value = c.stamina.value / 2;
570 thing.c_weight = EClass.pc.WeightLimit / 4 + 1000;
571 thing.isWeightChanged =
true;
virtual void RefreshWeather()
ElementContainerCard elements
Thing AddThing(string id, int lv=-1)
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
void DamageHP(long dmg, AttackSource attackSource=AttackSource.None, Card origin=null)
SourceCategory.Row category
bool HasElement(int ele, bool includeNagative=false)
static Chara Create(string id, int lv=-1)
Condition AddCondition(string id, int p=100, bool force=false)
bool HasCondition(string alias)
ConTransmuteMimic mimicry
void MakeAlly(bool msg=true)
void RefreshFaithElement()
void Kill(bool silent=false)
static SourceManager sources
static BaseGameScreen screen
static SoundManager Sound
void Learn(int ele, int v=1)
Element SetBase(string alias, int v, int potential=0)
string GetText(string id, string topic="text")
ElementContainerFaction charaElements
ReligionManager religions
static string[] GetList(string id)
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Point Set(int _x, int _z)
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false, int minRadius=0)
ReligionMoonShadow MoonShadow
ReligionTrickery Trickery
int GetOfferingValue(Thing t, int num=-1)
static Religion recentWrath
virtual void OnJoinFaith()
virtual int GetOfferingMtp(Thing t)
string GetGodTalk(string suffix)
string GetTextTemper(int _temper=-99999)
SourceReligion.Row source
virtual SourceElement.Row GetFeat(int i)
void Revelation(string idTalk, int chance=100)
virtual void OnLeaveFaith()
void JoinFaith(Chara c, ConvertType type=ConvertType.Default)
void LeaveFaith(Chara c, Religion newFaith, ConvertType type)
virtual void OnBecomeBranchFaith()
static Thing Reforge(string id, Point pos=null, bool first=true)
void SetTextRelation(UIText text)
void PunishTakeOver(Chara c)
void Talk(string idTalk, Card c=null, Card agent=null)
SourceReligion.Row _source
bool IsValidArtifact(string id)
static Religion GetArtifactDeity(string id)
SourceCategory categories
static Thing Create(string id, int idMat=-1, int lv=-1)
Card AddCard(Card t, Point point)