Skip to content

Commit

Permalink
Add Sanctifier
Browse files Browse the repository at this point in the history
  • Loading branch information
makscee committed Mar 10, 2024
1 parent 3b8f59f commit 8de0c4c
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 23 deletions.
35 changes: 13 additions & 22 deletions assets/ron/heroes/fungoid.unit.ron
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@
trigger: Fire(
trigger: AllyDeath,
target: Owner,
effect: List([
If(LessThen(ToInt(StateLast(Charges)), Int(3)), List([
StateAddVar(Charges, Owner, Int(1)),
UseAbility("Summon Treant"),
]), Noop),
]),
effect: List(
[
If(
LessThen(ToInt(StateLast(Charges)), Int(3)),
List([StateAddVar(Charges, Owner, Int(1)), UseAbility("Summon Treant")]),
Noop,
),
],
),
period: 0,
),
representation: (
Expand All @@ -27,25 +30,13 @@
point2: UnitVec(Sum(Mul(GameTime, Float(0.3)), PI)),
thickness: Float(1.4),
alpha: Float(1.0),
colors: [
State(Color),
Hex("101010ff"),
],
parts: [
Float(0.5),
Float(0.51),
],
colors: [State(Color), Hex("101010ff")],
parts: [Float(0.5), Float(0.51)],
),
children: [],
mapping: {
Rotation: Mul(Index, Float(0.2)),
Offset: Mul(UnitVec(Sum(GameTime, Index)), Float(0.07)),
},
mapping: {Rotation: Mul(Index, Float(0.2)), Offset: Mul(UnitVec(Sum(GameTime, Index)), Float(0.07))},
count: 4,
),
state: (
history: {},
birth: 0.0,
),
state: (history: {}, birth: 0.0),
statuses: [],
)
2 changes: 1 addition & 1 deletion assets/ron/heroes/priest.unit.ron
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
material: Shape(
shape: Circle,
thickness: Sum(Float(2.5), Cos(GameTime)),
size: Vec2E(Sum(Float(0.5), Mul(Beat, Float(0.3)))),
size: Vec2E(Sum(Float(0.5), Mul(Beat, Float(0.1)))),
),
mapping: {
Offset: Mul(
Expand Down
29 changes: 29 additions & 0 deletions assets/ron/heroes/sanctifier.unit.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
(
name: "Sanctifier",
hp: 4,
atk: 1,
stacks: 1,
level: 1,
houses: "Holy",
description: "%trigger → %effect on %target",
trigger: Fire(trigger: AllyDeath, target: AdjacentUnits, effect: UseAbility("Blessing"), period: 0),
representation: (
material: Shape(
shape: Circle,
fill: Line,
fill_color: Solid,
size: Vec2E(Sum(Float(0.59), Mul(Beat, Float(0.05)))),
point1: Vec2(1.0, 1.0),
point2: Vec2(1.0, 1.0),
thickness: Float(2.0),
alpha: Float(1.0),
colors: [State(Color)],
parts: [Float(0.0)],
),
children: [],
mapping: {Offset: Mul(UnitVec(Mul(Index, PI)), Mul(Sin(Mul(GameTime, Float(0.3))), Float(0.3)))},
count: 2,
),
state: (history: {}, birth: 0.0),
statuses: [],
)

0 comments on commit 8de0c4c

Please sign in to comment.