Commit 19410
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
2 posts
• Page 1 of 1
Commit 19410
by Max mtg » 05 Feb 2013, 13:40
http://svn.slightlymagic.net/websvn/dif ... &peg=19410
- Why is a random rare for winning a very hard challenge hardcoded? (why not to hold it in quest world options?)
- Why is difficulty hardcoded and compared against a string? (consider making an enum with custom valueOf overload to parse strings)
http://svn.slightlymagic.net/websvn/dif ... &peg=19410
- should be StringUtils.isBlank()
for the rest -
QuestEventDuels were not supposed to hold any special rewards. Why have you moved cardRewardList to base class? Why QuestEventChallenges able to hold special rewards don't suit you?
- Why is a random rare for winning a very hard challenge hardcoded? (why not to hold it in quest world options?)
- Why is difficulty hardcoded and compared against a string? (consider making an enum with custom valueOf overload to parse strings)
http://svn.slightlymagic.net/websvn/dif ... &peg=19410
- should be StringUtils.isBlank()
for the rest -
QuestEventDuels were not supposed to hold any special rewards. Why have you moved cardRewardList to base class? Why QuestEventChallenges able to hold special rewards don't suit you?
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: Commit 19410
by RumbleBBU » 05 Feb 2013, 13:59
This has been the case as long as I have known Forge...I didn't make this, I just moved it to a different place.Max mtg wrote:http://svn.slightlymagic.net/websvn/diff.php?repname=forge&path=%2Ftrunk%2Fsrc%2Fmain%2Fjava%2Fforge%2Fgui%2Fmatch%2FQuestWinLose.java&rev=19410&peg=19410
- Why is a random rare for winning a very hard challenge hardcoded? (why not to hold it in quest world options?)
- Why is difficulty hardcoded and compared against a string? (consider making an enum with custom valueOf overload to parse strings)
Did you read the commit comment? That was the whole point of the commit (explained in more detail in the comment).Max mtg wrote:for the rest -
QuestEventDuels were not supposed to hold any special rewards. Why have you moved cardRewardList to base class? Why QuestEventChallenges able to hold special rewards don't suit you?
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 37 guests