1using System.Collections.Generic;
39 return Mathf.Max(
Difficulty, 100) * Mathf.Max(100 - (
int)Mathf.Sqrt(c.
Evalue(285)) * 7, 10) / 400;
47 case Type.RandomSpell:
59 owner.c_idRefName = ie.RandomItem().id;
77 c.
Say(
"alreadyDecoded");
101 if (check > diff * 3)
117 c.
Say(
"spell_fail_mana", c);
122 c.
Say(
"spell_fail_confuse", c);
127 c.
Say(
"spell_fail_monster", c);
138 c.
Say(
"spell_fail_teleport", c);
163 c.
Say(
"book_decode", c, name);
174 case Type.RandomSpell:
199 c.
Say(
"learn_weakspot", c, cardRow.
GetName());
221 if (!c.
source.faith.IsEmpty())
223 c.
Say(
"faith_stands", c);
269 s =
"_deciphered ".lang(s);
276 if (!c_idRefName.IsEmpty())
279 s =
"_'s".lang(@ref, s);
static void Proc(EffectId id, Card cc, Card tc=null, int power=100, ActRef actRef=default(ActRef))
virtual string GetName(int i)
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
void Talk(string idTopic, string ref1=null, string ref2=null, bool forceSync=false)
void ModCharge(int a, bool destroy=false)
bool HasEditorTag(EditorTag tag)
BlessedState blessedState
void ModExp(string alias, int a)
void ModNum(int a, bool notify=true)
void Say(string lang, string ref1=null, string ref2=null)
static Chara CreateFromFilter(string id, int lv=-1, int levelRange=-1)
Condition AddCondition(string id, int p=100, bool force=false)
bool HasCondition(string alias)
override bool IsPCFaction
FactionMemberType memberType
void GainAbility(int ele, int mtp=100)
void AddWeakspot(string id)
static SourceManager sources
void AddContribution(int a)
ReligionManager religions
static string[] GetList(string id)
static void SetDirtyAll(bool immediate=false)
Effect PlayEffect(string id)
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false)
Dictionary< string, Religion > dictAll
Dictionary< string, CardRow > map
Thing Identify(bool show=true, IDTSource idtSource=IDTSource.Identify)
override bool CanRead(Chara c)
static ElementSelecter selecter
void ModCharge(Chara c, int a=-1)
static void ReadFailEffect(Chara c)
override void OnCreate(int lv)
override bool TryProgress(AIProgress p)
override void OnRead(Chara c)
override int GetActDuration(Chara c)
override void SetName(ref string s)
Card AddCard(Card t, Point point)