Elin Decompiled Documentation EA 23.312 Nightly Patch 4
Loading...
Searching...
No Matches
ReligionExtension Class Reference

Static Public Member Functions

static void SpawnAltar (this Religion religion)
 

Detailed Description

Definition at line 1 of file ReligionExtension.cs.

Member Function Documentation

◆ SpawnAltar()

static void ReligionExtension.SpawnAltar ( this Religion  religion)
inlinestatic

Definition at line 3 of file ReligionExtension.cs.

4 {
5 Thing thing = ThingGen.Create("altar");
6 (thing.trait as TraitAltar)?.SetDeity(religion.id);
7 Point nearestPoint = EClass.pc.pos.GetNearestPoint(allowBlock: true, allowChara: false, allowInstalled: false);
8 if (nearestPoint != null)
9 {
10 EClass._zone.AddCard(thing, nearestPoint).Install();
11 }
12 }
Point pos
Definition: Card.cs:60
Card Install()
Definition: Card.cs:3886
Definition: EClass.cs:6
static Zone _zone
Definition: EClass.cs:21
static Chara pc
Definition: EClass.cs:15
Definition: Point.cs:9
Point GetNearestPoint(bool allowBlock=false, bool allowChara=true, bool allowInstalled=true, bool ignoreCenter=false, int minRadius=0)
Definition: Point.cs:619
static Thing Create(string id, int idMat=-1, int lv=-1)
Definition: ThingGen.cs:53
Definition: Thing.cs:8
Card AddCard(Card t, Point point)
Definition: Zone.cs:2066

References EClass._zone, Zone.AddCard(), ThingGen.Create(), Point.GetNearestPoint(), Card.Install(), EClass.pc, Card.pos, and religion.


The documentation for this class was generated from the following file: