Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitGambleChest.cs
Go to the documentation of this file.
1
public
class
TraitGambleChest
:
TraitItem
2
{
3
public
override
void
OnCreate
(
int
lv)
4
{
5
owner.c_lockLv = lv;
6
owner.c_revealLock =
true
;
7
}
8
9
public
override
bool
OnUse
(
Chara
c)
10
{
11
EClass
.
pc
.
SetAIImmediate
(
new
AI_OpenGambleChest
12
{
13
target = owner.Thing
14
});
15
return
false
;
16
}
17
18
public
override
bool
CanStackTo
(
Thing
to)
19
{
20
return
owner.c_lockLv == to.
c_lockLv
;
21
}
22
23
public
override
int
GetValue
()
24
{
25
return
owner.sourceCard.value + owner.c_lockLv * 50;
26
}
27
}
AI_OpenGambleChest
Definition:
AI_OpenGambleChest.cs:4
Card.c_lockLv
int c_lockLv
Definition:
Card.cs:924
Chara
Definition:
Chara.cs:10
Chara.SetAIImmediate
void SetAIImmediate(AIAct g)
Definition:
Chara.cs:8077
EClass
Definition:
EClass.cs:5
EClass.pc
static Chara pc
Definition:
EClass.cs:14
Thing
Definition:
Thing.cs:8
TraitGambleChest
Definition:
TraitGambleChest.cs:2
TraitGambleChest.OnUse
override bool OnUse(Chara c)
Definition:
TraitGambleChest.cs:9
TraitGambleChest.OnCreate
override void OnCreate(int lv)
Definition:
TraitGambleChest.cs:3
TraitGambleChest.GetValue
override int GetValue()
Definition:
TraitGambleChest.cs:23
TraitGambleChest.CanStackTo
override bool CanStackTo(Thing to)
Definition:
TraitGambleChest.cs:18
TraitItem
Definition:
TraitItem.cs:2
Elin
TraitGambleChest.cs
Generated by
1.9.6