Elin Decompiled Documentation
EA 23.270 Nightly Patch 1
Loading...
Searching...
No Matches
StanceSongEnd.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
3
public
class
StanceSongEnd
:
BaseSong
4
{
5
public
override
void
TickSong
()
6
{
7
foreach
(
Chara
item
in
owner
.
pos
.
ListCharasInRadius
(
owner
, 4, (
Chara
c) => !c.
IsDeadOrSleeping
&& c.
IsHostile
(
owner
)))
8
{
9
if
(
owner
==
null
|| !
owner
.
ExistsOnMap
)
10
{
11
break
;
12
}
13
if
((
item
.IsPowerful ? 15 : 30) * Mathf.Min(base.power / 4, 100) / 100 >
EClass
.
rnd
(100))
14
{
15
ActEffect
.
ProcAt
(
EffectId
.Hand,
owner
.
Power
,
BlessedState
.Normal,
owner
,
item
,
item
.pos, isNeg:
true
,
new
ActRef
16
{
17
aliasEle = ((EClass.rnd(2) == 0) ?
"eleLightning"
: ((EClass.rnd(2) == 0) ?
"eleCold"
:
"eleFire"
))
18
});
19
}
20
}
21
}
22
}
BlessedState
BlessedState
Definition:
BlessedState.cs:2
ContainerFlag.item
@ item
EffectId
EffectId
Definition:
EffectId.cs:2
ActEffect
Definition:
ActEffect.cs:7
ActEffect.ProcAt
static void ProcAt(EffectId id, int power, BlessedState state, Card cc, Card tc, Point tp, bool isNeg, ActRef actRef=default(ActRef))
Definition:
ActEffect.cs:492
BaseCondition.owner
Chara owner
Definition:
BaseCondition.cs:15
BaseSong
Definition:
BaseSong.cs:2
Card.Power
virtual int Power
Definition:
Card.cs:2298
Card.ExistsOnMap
bool ExistsOnMap
Definition:
Card.cs:2086
Card.pos
Point pos
Definition:
Card.cs:60
Chara
Definition:
Chara.cs:10
Chara.IsDeadOrSleeping
override bool IsDeadOrSleeping
Definition:
Chara.cs:575
Chara.IsHostile
bool IsHostile()
Definition:
Chara.cs:6527
EClass
Definition:
EClass.cs:6
EClass.rnd
static int rnd(long a)
Definition:
EClass.cs:59
Point.ListCharasInRadius
List< Chara > ListCharasInRadius(Chara cc, int dist, Func< Chara, bool > func, bool onlyVisible=true)
Definition:
Point.cs:1220
StanceSongEnd
Definition:
StanceSongEnd.cs:4
StanceSongEnd.TickSong
override void TickSong()
Definition:
StanceSongEnd.cs:5
ActRef
Definition:
ActRef.cs:2
Elin
StanceSongEnd.cs
Generated by
1.9.6