Skip to content

Commit

Permalink
ActorType as newtype
Browse files Browse the repository at this point in the history
  • Loading branch information
aratama committed Jan 26, 2025
1 parent abb5c6d commit a7fc25f
Show file tree
Hide file tree
Showing 15 changed files with 136 additions and 254 deletions.
20 changes: 10 additions & 10 deletions assets/registry.game.ron
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ GameRegistry(
ru: "Руины библиотеки",
),
enemies: 10,
enemy_types: [Slime],
enemy_types: ["Slime"],
items: 3,
item_ranks: [0, 1, 2],
biome: StoneTile,
Expand All @@ -114,7 +114,7 @@ GameRegistry(
ru: "Подземные луга",
),
enemies: 15,
enemy_types: [Slime, Spider],
enemy_types: ["Slime", "Spider"],
items: 3,
item_ranks: [1, 2, 3],
biome: Grassland,
Expand All @@ -136,7 +136,7 @@ GameRegistry(
ru: "Древний замок",
),
enemies: 20,
enemy_types: [Spider, EyeBall],
enemy_types: ["Spider", "EyeBall"],
items: 3,
item_ranks: [2, 3, 4],
biome: StoneTile,
Expand All @@ -158,7 +158,7 @@ GameRegistry(
ru: "Гнездо слизней",
),
enemies: 20,
enemy_types: [EyeBall, Shadow],
enemy_types: ["EyeBall", "Shadow"],
items: 3,
item_ranks: [3, 4, 5],
biome: StoneTile,
Expand All @@ -180,7 +180,7 @@ GameRegistry(
ru: "Ледяная пещера",
),
enemies: 15,
enemy_types: [Shadow, Salamander],
enemy_types: ["Shadow", "Salamander"],
items: 3,
item_ranks: [4, 5, 6],
biome: Ice,
Expand All @@ -202,7 +202,7 @@ GameRegistry(
ru: "Древний коридор",
),
enemies: 30,
enemy_types: [Slime, Spider, EyeBall, Shadow, Salamander],
enemy_types: ["Slime", "Spider", "EyeBall", "Shadow", "Salamander"],
items: 3,
item_ranks: [4, 5, 6],
biome: StoneTile,
Expand Down Expand Up @@ -383,7 +383,7 @@ GameRegistry(
(118, 66, 138, 255): (
tile: None,
zone: SafeZone,
entity: Actor(BookShelf),
entity: Actor("BookShelf"),
entry_point: false,
spawn_offset_x: 8.0,
),
Expand Down Expand Up @@ -493,7 +493,7 @@ GameRegistry(
(223, 113, 38, 255): (
tile: StoneTile,
zone: SafeZone,
entity: Actor(Lantern),
entity: Actor("Lantern"),
entry_point: false,
spawn_offset_x: 0.0,
),
Expand All @@ -515,7 +515,7 @@ GameRegistry(
tile: None,
zone: SafeZone,
entity: Boss (
actor_type: HugeSlime,
actor_type: "HugeSlime",
name: Dict (
ja: "スライムの王 エミルス",
en: "Slime King Emils",
Expand Down Expand Up @@ -606,7 +606,7 @@ GameRegistry(
(182, 0, 255, 255): (
tile: None,
zone: SafeZone,
entity: Actor(Sandbag),
entity: Actor("Sandbag"),
entry_point: false,
spawn_offset_x: 0.0,
),
Expand Down
18 changes: 9 additions & 9 deletions assets/registry.spell.ron
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ SpellRegistry(
cast_delay: 120,
icon: "spawn_jar_icon",
price: 20,
cast: Spawn (Actor (Chest)),
cast: Spawn (Actor ("Chest")),
),
"PurpleBolt": (
rank: 1,
Expand Down Expand Up @@ -477,7 +477,7 @@ SpellRegistry(
cast_delay: 30,
icon: "slime",
price: 200,
cast: Summon (friend: false, servant_type: Slime, servant: false),
cast: Summon (friend: false, servant_type: "Slime", servant: false),
),
"SummonEnemyEyeball": (
rank: 2,
Expand Down Expand Up @@ -508,7 +508,7 @@ SpellRegistry(
cast_delay: 30,
icon: "eyeball",
price: 200,
cast: Summon (friend: false, servant_type: EyeBall, servant: false),
cast: Summon (friend: false, servant_type: "EyeBall", servant: false),
),
"Servant": (
rank: 2,
Expand Down Expand Up @@ -539,7 +539,7 @@ SpellRegistry(
cast_delay: 30,
icon: "summon_servant",
price: 200,
cast: Summon (friend: true, servant_type: Chicken, servant: true),
cast: Summon (friend: true, servant_type: "Chicken", servant: true),
),
"Web": (
rank: 2,
Expand Down Expand Up @@ -601,7 +601,7 @@ SpellRegistry(
cast_delay: 120,
icon: "spawn_chiken_icon",
price: 100,
cast: Summon (friend: true, servant_type: Chicken, servant: false ),
cast: Summon (friend: true, servant_type: "Chicken", servant: false ),
),
"HeavyShot": (
rank: 3,
Expand Down Expand Up @@ -726,7 +726,7 @@ SpellRegistry(
cast_delay: 30,
icon: "slime",
price: 200,
cast: Summon (friend: true, servant_type: Slime, servant: false ),
cast: Summon (friend: true, servant_type: "Slime", servant: false ),
),
"PrecisionUp": (
rank: 3,
Expand Down Expand Up @@ -788,7 +788,7 @@ SpellRegistry(
cast_delay: 120,
icon: "spawn_bookshelf_icon",
price: 500,
cast: Spawn (Actor (BookShelf)),
cast: Spawn (Actor ("BookShelf")),
),
"Fireball": (
rank: 3,
Expand Down Expand Up @@ -850,7 +850,7 @@ SpellRegistry(
cast_delay: 30,
icon: "eyeball",
price: 200,
cast: Summon (friend: true, servant_type: EyeBall, servant: false ),
cast: Summon (friend: true, servant_type: "EyeBall", servant: false ),
),
"Dash": (
rank: 4,
Expand Down Expand Up @@ -1314,7 +1314,7 @@ SpellRegistry(
cast_delay: 180,
icon: "summon_huge_slime_icon",
price: 10000,
cast: Spawn (Actor (HugeSlime)),
cast: Spawn (Actor ("HugeSlime")),
),
"Bomb": (
rank: 7,
Expand Down
Loading

0 comments on commit a7fc25f

Please sign in to comment.