1using System.Collections.Generic;
40 return Mathf.Max(
Difficulty, 100) * Mathf.Max(100 - (
int)Mathf.Sqrt(c.
Evalue(285)) * 7, 10) / 400;
48 case Type.RandomSpell:
60 owner.c_idRefName = ie.RandomItem().id;
79 c.
Say(
"alreadyDecoded");
90 int check = Mathf.Max(1, (
int)((num >= 21474836) ? 21474836 : num));
107 if (check > diff * 3)
123 c.
Say(
"spell_fail_mana", c);
128 c.
Say(
"spell_fail_confuse", c);
133 c.
Say(
"spell_fail_monster", c);
144 c.
Say(
"spell_fail_teleport", c);
170 c.
Say(
"book_decode", c, name);
172 c.feat += (c.IsPC ? 1 : 4);
183 c.
Say(
"book_decode", c, name);
194 case Type.RandomSpell:
219 c.
Say(
"learn_weakspot", c, cardRow.
GetName());
241 if (!c.
source.faith.IsEmpty() && c.source.faith == c.
faith.
id)
243 c.
Say(
"faith_stands", c);
289 s =
"_deciphered".lang(s);
297 if (!c_idRefName.IsEmpty())
300 s =
"_'s".lang(@ref, s);
304 s =
"_deciphered".lang(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)
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
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
override void Die(Element e=null, Card origin=null, AttackSource attackSource=AttackSource.None, Chara originalTarget=null)
void GainAbility(int ele, int mtp=100, Thing origin=null)
FactionMemberType memberType
void AddWeakspot(string id)
static SourceManager sources
void AddContribution(int a)
ReligionManager religions
static string[] GetList(string id)
static void SetDirtyAll(bool immediate=false)
Chara FindChara(string id)
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false, int minRadius=0)
Effect PlayEffect(string id)
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)
static void Create(Card owner, int ele)
Card AddCard(Card t, Point point)