From 8de0c4cda9afddbf32c71d0b8ac2eb332ea5e52a Mon Sep 17 00:00:00 2001 From: Maksim Chugunov Date: Sun, 10 Mar 2024 15:17:54 +0300 Subject: [PATCH] Add Sanctifier --- assets/ron/heroes/fungoid.unit.ron | 35 ++++++++++----------------- assets/ron/heroes/priest.unit.ron | 2 +- assets/ron/heroes/sanctifier.unit.ron | 29 ++++++++++++++++++++++ 3 files changed, 43 insertions(+), 23 deletions(-) create mode 100644 assets/ron/heroes/sanctifier.unit.ron diff --git a/assets/ron/heroes/fungoid.unit.ron b/assets/ron/heroes/fungoid.unit.ron index 22ef496b5..9ef31c5ac 100644 --- a/assets/ron/heroes/fungoid.unit.ron +++ b/assets/ron/heroes/fungoid.unit.ron @@ -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: ( @@ -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: [], ) \ No newline at end of file diff --git a/assets/ron/heroes/priest.unit.ron b/assets/ron/heroes/priest.unit.ron index 36088aed5..c8469dca7 100644 --- a/assets/ron/heroes/priest.unit.ron +++ b/assets/ron/heroes/priest.unit.ron @@ -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( diff --git a/assets/ron/heroes/sanctifier.unit.ron b/assets/ron/heroes/sanctifier.unit.ron new file mode 100644 index 000000000..e29f8df9b --- /dev/null +++ b/assets/ron/heroes/sanctifier.unit.ron @@ -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: [], +) \ No newline at end of file