Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
InvOwnerChaosOffering.cs
Go to the documentation of this file.
2{
4
5 public override string langTransfer => "invOffering";
6
7 public override ProcessType processType => ProcessType.Consume;
8
9 public override bool DenyImportant => true;
10
11 public InvOwnerChaosOffering(Card owner = null, Card container = null, CurrencyType _currency = CurrencyType.Money)
12 : base(owner, container, _currency)
13 {
14 }
15
16 public override bool ShouldShowGuide(Thing t)
17 {
18 return t.source._origin == "artifact_summon";
19 }
20
21 public override void _OnProcess(Thing t)
22 {
23 string id = "swordkeeper";
24 if (!EClass.player.codex.Has(id))
25 {
27 return;
28 }
29 count = 1;
30 SE.Change();
31 t.ModNum(-1);
32 owner.PlayEffect("curse");
33 Chara chara = CharaGen.Create(id);
34 EClass._zone.AddCard(chara, owner.pos.GetNearestPoint(allowBlock: false, allowChara: false) ?? owner.pos);
35 chara.PlayEffect("aura_heaven");
36 Msg.Say("summon_god");
37 Msg.Say("summon_god2", chara);
38 }
39}
CurrencyType
Definition: CurrencyType.cs:2
Definition: Card.cs:11
Point pos
Definition: Card.cs:55
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
Definition: Card.cs:5438
void ModNum(int a, bool notify=true)
Definition: Card.cs:3262
static Chara Create(string id, int lv=-1)
Definition: CharaGen.cs:17
Definition: Chara.cs:10
bool Has(string id)
Definition: CodexManager.cs:36
Definition: EClass.cs:5
static Zone _zone
Definition: EClass.cs:20
static Player player
Definition: EClass.cs:12
override bool ShouldShowGuide(Thing t)
override string langTransfer
InvOwnerChaosOffering(Card owner=null, Card container=null, CurrencyType _currency=CurrencyType.Money)
override ProcessType processType
override void _OnProcess(Thing t)
Card owner
Definition: InvOwner.cs:538
Definition: Msg.cs:5
static string SayNothingHappen()
Definition: Msg.cs:96
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Definition: Msg.cs:58
CodexManager codex
Definition: Player.cs:916
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false)
Definition: Point.cs:595
Definition: Thing.cs:8
Card AddCard(Card t, Point point)
Definition: Zone.cs:1893