|
| override bool | Perform () |
| |
| virtual CursorInfo | GetCursorIcon (Card c) |
| |
| virtual MultiSprite | GetStateIcon () |
| |
| override Sprite | GetSprite () |
| |
| virtual bool | ShowMouseHint (Card c) |
| |
| virtual bool | IsValidTC (Card c) |
| |
| virtual string | GetHintText (string str="") |
| |
| virtual string | GetText (string str="") |
| |
| virtual string | GetTextSmall (Card c) |
| |
| bool | IsTargetHostileParty () |
| |
| virtual Color | GetActPlanColor () |
| |
| virtual bool | Perform () |
| |
| bool | Perform (Chara _cc, Card _tc=null, Point _tp=null) |
| |
| virtual bool | ValidatePerform (Chara _cc, Card _tc, Point _tp) |
| |
| virtual bool | CanPerform () |
| |
| bool | CanPerform (Chara _cc, Card _tc=null, Point _tp=null) |
| |
| virtual bool | IsToolValid () |
| |
| new void | SetImage (Image image) |
| |
| virtual void | OnMarkMapHighlights () |
| |
| virtual bool | ShouldMapHighlight (Point p) |
| |
| virtual SourceElement.Row | GetSource () |
| |
| virtual int | GetSourcePotential (int v) |
| |
| virtual Sprite | GetSprite () |
| |
| int | GetMaterialSourceValue (Thing t, int v) |
| |
| virtual long | GetSourceValue (long v, int lv, SourceValueType type) |
| |
| virtual Sprite | GetIcon (string suffix="") |
| |
| bool | IsActive (Card c) |
| |
| int | SortVal (bool charaSheet=false) |
| |
| virtual bool | CanLink (ElementContainer owner) |
| |
| bool | HasTag (string tag) |
| |
| void | SetImage (Image i) |
| |
| virtual string | GetDetail () |
| |
| bool | IsFactionElement (Chara c) |
| |
| int | GetDNABonus (Chara c) |
| |
| Element | GetParent (Card c) |
| |
| void | WriteNote (UINote n, ElementContainer owner=null, Action< UINote > onWriteNote=null) |
| |
| void | WriteNoteWithRef (UINote n, ElementContainer owner, Action< UINote > onWriteNote, Element refEle) |
| |
| void | _WriteNote (UINote n, Chara c, Act act) |
| |
| void | AddHeaderAbility (UINote n) |
| |
| void | _WriteNote (UINote n, ElementContainer owner, Action< UINote > onWriteNote, bool isRef, bool addHeader=true) |
| |
| void | AddEncNote (UINote n, Card Card, ElementContainer.NoteMode mode=ElementContainer.NoteMode.Default, Func< Element, string, string > funcText=null, Action< UINote, Element > onAddNote=null) |
| |
| virtual void | OnWriteNote (UINote n, ElementContainer owner) |
| |
| virtual void | OnChangeValue () |
| |
| void | CheckLevelBonus (ElementContainer owner, UINote n=null) |
| |
| int | GetSortVal (UIList.SortMode m) |
| |
| virtual Act.Cost | GetCost (Chara c) |
| |
| virtual int | GetPower (Card c) |
| |
| virtual void | SetTextValue (UIText text, bool shorten=false) |
| |
| virtual bool | IsPurchaseFeatReqMet (ElementContainer owner, int lv=-1) |
| |
| virtual void | WritePurchaseReq (UINote n, int lv=1) |
| |
|
| static bool | TryPray (Chara c, bool passive=false) |
| |
| static void | Pray (Chara c, bool passive) |
| |
| static void | SetReference (Chara _cc, Card _tc=null, Point _tp=null) |
| |
| static void | SetTool (Thing t) |
| |
| static string | GetName (string alias) |
| |
| static SourceElement.Row | Get (int id) |
| |
| static Dictionary< int, int > | GetElementMap (int[] list) |
| |
| static Dictionary< int, int > | GetElementMap (int[] list, Dictionary< int, int > map) |
| |
| static SourceElement.Row | GetRandomElement (int lv=1, bool useWeight=true) |
| |
| static Element | Create (int id, int v=0) |
| |
| static Element | Create (string id, int v=1) |
| |
| static int | GetId (string alias) |
| |
| static int | GetResistLv (int v) |
| |
| static long | GetResistDamage (long dmg, int v, int power=0) |
| |
| static int | rndSeed (int a, int seed) |
| |
| static int | rnd (long a) |
| |
| static int | rnd (int a) |
| |
| static int | curve (long _a, int start, int step, int rate=75) |
| |
| static int | sqrt (int a) |
| |
| static int | rndHalf (int a) |
| |
| static float | rndf (float a) |
| |
| static int | rndSqrt (int a) |
| |
| static void | Wait (float a, Card c) |
| |
| static void | Wait (float a, Point p) |
| |
| static int | Bigger (int a, int b) |
| |
| static int | Smaller (int a, int b) |
| |
|
| enum | CostType { None
, MP
, SP
} |
| |
| SourceElement.Row | _source |
| |
| int | id |
| |
| int | vBase |
| |
| int | vExp |
| |
| int | vPotential |
| |
| int | vTempPotential |
| |
| int | vLink |
| |
| int | vSource |
| |
| int | vSourcePotential |
| |
| ElementContainer | owner |
| |
| static Chara | CC |
| |
| static Card | TC |
| |
| static Point | TP = new Point() |
| |
| static Thing | TOOL |
| |
| static int | powerMod = 100 |
| |
| static bool | forcePt |
| |
| static Act | CurrentAct |
| |
| const int | Div = 5 |
| |
| static Element | Void = new Element() |
| |
| static int[] | List_MainAttributes = new int[9] { 70, 72, 71, 77, 74, 75, 76, 73, 79 } |
| |
| static int[] | List_MainAttributesMajor = new int[8] { 70, 72, 71, 77, 74, 75, 76, 73 } |
| |
| static int[] | List_Body = new int[4] { 70, 72, 71, 77 } |
| |
| static int[] | List_Mind = new int[4] { 74, 75, 76, 73 } |
| |
| static List< SourceElement.Row > | ListElements = new List<SourceElement.Row>() |
| |
| static List< SourceElement.Row > | ListAttackElements = new List<SourceElement.Row>() |
| |
| static Core | core |
| |
Definition at line 1 of file ActPray.cs.
| static void ActPray.Pray |
( |
Chara |
c, |
|
|
bool |
passive |
|
) |
| |
|
inlinestatic |
Definition at line 79 of file ActPray.cs.
80 {
82 {
83 EClass.player.prayed = true;
84 }
85 if (!passive)
86 {
89 }
91 {
92 if (member == c || (passive && c.
Evalue(1655) >= 2))
93 {
95 }
96 }
97 if (!passive)
98 {
100 c.
Say(
"pray_heal", c);
101 }
103 {
105 {
107 }
108 return;
109 }
112 {
118 }
119 }
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
virtual void HealHP(long a, HealSource origin=HealSource.None)
void ModExp(string alias, int a)
void Say(string lang, string ref1=null, string ref2=null)
void Cure(CureType type, int p=100, BlessedState state=BlessedState.Normal)
virtual void Revelation(string idTalk, Card c, int chance=100)
References Chara.Cure(), Chara.faith, Heal, Card.HealHP(), Chara.IsPC, Chara.mana, Party.members, Stats.Mod(), Card.ModExp(), Religion.Name, Chara.party, Card.PlayEffect(), Religion.Revelation(), EClass.rnd(), and Card.Say().
Referenced by TryPray().
| static bool ActPray.TryPray |
( |
Chara |
c, |
|
|
bool |
passive = false |
|
) |
| |
|
inlinestatic |
Definition at line 12 of file ActPray.cs.
13 {
15 {
17 if (thing != null)
18 {
23 return true;
24 }
25 }
27 {
29 if (passive && c.
Evalue(1655) >= 2 && c.party.members.Count > 1)
30 {
32 {
33 if (member != c)
34 {
37 }
38 }
39 }
41 {
43 }
44 else
45 {
47 {
48 EClass.player.prayed = true;
49 }
51 }
52 return true;
53 }
55 {
56 if (member2 == c || (passive && c.
Evalue(1655) >= 2))
57 {
59 }
60 }
62 {
64 {
65 if (!passive)
66 {
69 }
70 }
71 else
72 {
74 }
75 }
76 return true;
77 }
static void Pray(Chara c, bool passive)
bool HasElement(int ele, bool includeNagative=false)
bool HasCondition(string alias)
virtual bool TryGetGift(Chara chara=null)
References Card.Destroy(), Card.Evalue(), Chara.faith, ThingContainer.Find(), Chara.HasCondition(), Card.HasElement(), Religion.IsEyth, Chara.IsPC, Party.members, Card.ModExp(), Religion.Name, Chara.party, Card.PlayEffect(), EClass.player, Card.PlaySound(), Pray(), Player.prayed, Card.Say(), and Card.things.
Referenced by GameDate.AdvanceDay(), and Perform().