26 public virtual string id =>
"";
96 for (
int i = 0; i <
source.elements.Length; i += 2)
100 text = text + Lang.words.comma +
Lang.
space;
104 return source.GetText(
"textBenefit") + (
IsEyth ?
"" :
"textBenefit".lang(text));
113 if (_temper == -99999)
120 return list[0].ToTitleCase().TagColor(
FontColor.Bad);
124 return list[1].ToTitleCase().TagColor(
FontColor.Bad);
128 return list[2].ToTitleCase();
132 return list[3].ToTitleCase();
136 return list[4].ToTitleCase();
140 return list[5].ToTitleCase().TagColor(
FontColor.Great);
142 return list[6].ToTitleCase().TagColor(
FontColor.Good);
180 if (t.
source._origin ==
"meat")
194 string[] cat_offer =
source.cat_offer;
195 foreach (
string key
in cat_offer)
212 v = v * (100 + Mathf.Min(t.
LV * 2, 100) + (t.
HasElement(757) ? 50 : 0)) / 100;
213 v = Mathf.Max(v, 1) * num;
218 v *= cat.offer * mtp / 100;
243 string[] array =
source.rewards[1].Split(
'|');
244 string[] array2 = array;
245 foreach (
string text
in array2)
247 Reforge(text, point, text == array[0]);
285 pos.
Set(pos.GetNearestPoint(allowBlock:
false, allowChara:
false, allowInstalled:
false, ignoreCenter:
true) ?? pos);
287 foreach (
Element value
in thing.elements.dict.Values)
289 if (value.
id == 66 || value.
id == 67 || value.
id == 64 || value.
id == 65 || value.
id == 92)
299 if (value.
id == 427 || value.
id == 957 || value.
id == 105 || value.
id == 466 || value.
id == 664)
306 if (value.
id == 6650 || value.
id == 480 || value.
id == 959 || value.
id == 428 || value.
id == 640 || value.
id == 665)
313 if (value.
id == 70 || value.
id == 55 || value.
id == 56 || value.
id == 954 || value.
id == 423 || value.
id == 421)
326 case "staff_element":
337 if (!(value is
Resistance) && value.
id != 226 && value.
id != 152 && value.
id != 77)
344 if (value.
id == 60 || value.
id == 461 || value.
id == 423)
350 case "sword_muramasa2":
351 if (value.
id == 401 || value.
id == 916 || value.
id == 661)
357 case "kogitsunemaru":
365 if (value.
id == 468 || value.
id == 423 || value.
id == 463 || value.
id == 460 || value.
id == 464 || value.
id == 465)
377 pos.PlaySound(
"godbless");
402 EClass.pc.c_daysWithGod = 0;
483 if (
item.giftRank > 0)
494 c.AddCondition<
ConWrath>(2000 + (c.IsPC ? (EClass.pc.c_daysWithGod * 20) : 0));
499 Talk(
"takeoverFail");
508 c.mana.value = c.mana.value / 2;
512 c.stamina.value = c.stamina.value / 2;
522 thing.c_weight = EClass.pc.WeightLimit / 4 + 1000;
523 thing.isWeightChanged =
true;
ElementContainerCard elements
void DamageHP(int dmg, AttackSource attackSource=AttackSource.None, Card origin=null)
bool HasElement(int ele, int req=1)
Thing AddThing(string id, int lv=-1)
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
SourceCategory.Row category
static Chara Create(string id, int lv=-1)
Condition AddCondition(string id, int p=100, bool force=false)
bool HasCondition(string alias)
void MakeAlly(bool msg=true)
void RefreshFaithElement()
static SourceManager sources
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)
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)
SourceCategory categories
static Thing Create(string id, int idMat=-1, int lv=-1)
Card AddCard(Card t, Point point)