Skip to content

Commit

Permalink
Fusion support triggers and description;
Browse files Browse the repository at this point in the history
Unit description [Ability] macro;
Unit card statused provided directly;
Unit card from state only;
Multiple houses support initial;
  • Loading branch information
makscee committed Jan 20, 2024
1 parent 48e845e commit 4ba603e
Show file tree
Hide file tree
Showing 30 changed files with 450 additions and 479 deletions.
205 changes: 96 additions & 109 deletions assets/ron/custom.battle.ron
Original file line number Diff line number Diff line change
Expand Up @@ -3,141 +3,128 @@
left: (
units: [
(
name: "Wizard",
hp: 3,
atk: 1,
house: "Mages",
description: "use [Magic Missile] ({Level})",
trigger: TurnEnd(UseAbility("Magic Missile")),
hp: 2,
atk: 2,
houses: ["Paladins"],
trigger: TurnEnd(
WithTarget(
SlotUnit(Int(1)),
UseAbility("Shield"),
),
),
name: "Protector",
description: "use [Ability] ({Level}) on front ally",
representation: (
material: Shape(
shape: Circle,
thickness: Sum(
Float(2.5),
Cos(GameTime),
),
size: Vec2E(
Sum(
Float(0.7),
Mul(
Beat,
Float(0.3),
),
),
),
fill: Line,
size: Vec2E(Float(0.67)),
thickness: Float(0.37),
alpha: Float(0.36),
color: State(Color),
),
children: [
(
count: 5,
material: Shape(
shape: Circle,
fill: Opaque,
size: Vec2E(Float(0.2)),
),
mapping: {
Position: Mul(
Vec2EE(
children: [],
mapping: {
Position: Mul(
UnitVec(
Sum(
IntFloat(
State(Index),
),
Sum(
GameTime,
Sin(
Sum(
Mul(
RandomFloat,
GameTime,
IntFloat(
State(
Index,
),
),
),
),
Cos(
GameTime,
),
),
),
),
Mul(
Sin(
Mul(
GameTime,
Float(0.3),
),
),
Float(0.19),
),
),
},
count: 16,
),
),
(
name: "Priest",
hp: 1,
atk: 1,
houses: ["Holy"],
description: "use [Ability] ({Level}) on all allies",
trigger: BattleStart(
AoeFaction(
OwnerFaction,
UseAbility(
"Blessing",
),
),
),
representation: (
count: 4,
material: Shape(
shape: Circle,
thickness: Sum(
Float(2.5),
Cos(
Mul(
Sum(
GameTime,
IntFloat(
State(
Index,
),
),
),
Float(
1.3,
),
),
GameTime,
),
),
size: Vec2E(
Sum(
Float(
0.5,
),
Beat,
Mul(
Beat,
Float(
0.3,
),
),
),
),
),
},
),
],
),
),(
name: "Priest",
hp: 1,
atk: 1,
house: "Holy",
description: "use [Blessing] ({Level}) on all allies",
trigger: BattleStart(
AoeFaction(
OwnerFaction,
UseAbility("Blessing"),
),
),
representation: (
count: 4,
material: Shape(
shape: Circle,
thickness: Sum(
Float(2.5),
Cos(GameTime),
),
size: Vec2E(
Sum(
Float(0.5),
Mul(
Beat,
Float(0.3),
),
),
),
),
mapping: {
Position: Mul(
UnitVec(
Mul(
Sum(
GameTime,
Mul(
mapping: {
Position: Mul(
UnitVec(
Mul(
PI,
Float(
0.5,
Sum(
GameTime,
Mul(
Mul(
PI,
Float(
0.5,
),
),
IntFloat(
State(
Index,
),
),
),
),
),
IntFloat(
State(
Index,
Float(
3.0,
),
),
),
Float(0.3),
),
Float(3.0),
),
},
children: [],
),
Float(0.3),
),
},
children: [],
),
)
],
),
right: (
Expand All @@ -146,7 +133,7 @@
hp: 3,
atk: 3,
name: "Snake",
house: "Enemies",
houses: ["Enemies"],
description: "Kill after dealing any damage",
trigger: AfterDamageDealt(Kill),
representation: (
Expand Down
14 changes: 0 additions & 14 deletions assets/ron/enemies/bug.unit.ron

This file was deleted.

66 changes: 0 additions & 66 deletions assets/ron/enemies/charger.unit.ron

This file was deleted.

14 changes: 0 additions & 14 deletions assets/ron/enemies/rat.unit.ron

This file was deleted.

16 changes: 0 additions & 16 deletions assets/ron/enemies/snake.unit.ron

This file was deleted.

Loading

0 comments on commit 4ba603e

Please sign in to comment.