FreezingMoon/AncientBeast



The issue has been solved
load units if playable #1674
DreadKnight posted onGitHub
The current way of loading creatures and their abilities seems ultra redundant to me atm.
This shouldn't be so manually hardcoded, but auto-generated instead based on a field in
the data.json
file, named playable
, so if the value is 1, the unit will loaded, otherwise it's 🔒.
https://github.com/FreezingMoon/AncientBeast/blob/master/assets/units/data.json
The stuff that will need to be revamped: https://github.com/FreezingMoon/AncientBeast/blob/master/src/game.js#L80 https://github.com/FreezingMoon/AncientBeast/blob/master/src/script.js#L9 https://github.com/FreezingMoon/AncientBeast/blob/master/src/script.js#L41