FreezingMoon/AncientBeast

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


@dreadknight has funded $3.00 to this issue.


posted by issuehunt-app[bot] over 4 years ago

@dreadknight has funded $2.00 to this issue.


posted by issuehunt-app[bot] over 4 years ago

@dreadknight has rewarded $4.50 to @willianveiga. See it on IssueHunt

  • :moneybag: Total deposit: $5.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $0.50
posted by issuehunt-app[bot] over 4 years ago

Fund this Issue

$5.00
Rewarded

Rewarded pull request

Recent activities

willianveiga was rewarded by dreadknight for FreezingMoon/AncientBeast# 1674
over 4 years ago
dreadknight funded 2.00 for FreezingMoon/AncientBeast# 1674
over 4 years ago