Elin Decompiled Documentation EA 23.130 Nightly
Loading...
Searching...
No Matches
TraitChestOyster.cs
Go to the documentation of this file.
2{
3 public override int ChanceLock => 100;
4
5 public override void Prespawn(int lv)
6 {
7 if (EClass.rnd(3) != 0)
8 {
9 if (EClass.rnd(2) == 0)
10 {
11 owner.c_lockLv = 0;
12 }
13 }
14 else
15 {
16 ThingGen.CreateTreasureContent(owner.Thing, lv, TreasureType.RandomChest, clearContent: true);
17 }
18 }
19}
TreasureType
Definition: TreasureType.cs:2
virtual Thing Thing
Definition: Card.cs:1958
Definition: EClass.cs:5
static int rnd(int a)
Definition: EClass.cs:58
static void CreateTreasureContent(Thing t, int lv, TreasureType type, bool clearContent)
Definition: ThingGen.cs:224
override int ChanceLock
override void Prespawn(int lv)
Card owner
Definition: Trait.cs:26