demilich1 / metastone

Hearthstone simulator written in Java with full GUI support
GNU General Public License v2.0
132 stars 80 forks source link

[Question] I have added a new Hero to the HeroClass.java. How do I add the graphic for this hero, Heropower/Portrait? #343

Closed Boso101 closed 7 years ago

webadict commented 7 years ago

Well, there's kind of a problem with that. You see, the Hero portraits are hardcoded in. So... There's not really a way to do that just yet, without modifying another file. Same goes for hero powers as well. It's possible to add this feature eventually, but it would be a much lower priority. That said, I'm not against it, and it'd be nice to see.

Boso101 commented 7 years ago

Okay, so basically all I can do for now is edit the existing ones? oh well good enough.

demilich1 commented 7 years ago

Well if you added code to the HeroClass.java, you already modified the source code. There is nothing stopping you from modifying additional files, right? Like @webadict already mentioned, right this is the only way, we don't have a way to define a new hero class as pure data.