enemy movement should be deterministic now

This commit is contained in:
2026-02-11 05:37:55 +11:00
parent b72b05f33b
commit a2dc8f1630
15 changed files with 75 additions and 45 deletions

View File

@@ -5,7 +5,7 @@ enum Faction {
GENERIC = 0,
ENGINEER = 1,
MAGE = 2,
}
}
@export var cost: int
@export var rarity: Data.Rarity

View File

@@ -27,6 +27,17 @@ var mage_cards_bought: int = 0
var mage_unlocked: bool = 0
func get_unlocked_classes() -> Array[HeroClass]:
var arr: Array[HeroClass] = []
for character: HeroClass in Data.characters:
if character.faction == Card.Faction.ENGINEER:
arr.append(Data.characters)
#TODO: When mage cards are good to show up in the shop, replace false with mage_unlocked
if false and character.faction == Card.Faction.MAGE:
arr.append(Data.characters)
return arr
func check_high_score(level_title: String, wave_reached: int, endless: bool) -> void:
if !endless_high_scores.has(level_title):
endless_high_scores[level_title] = 0