It is currently 08 Sep 2025, 04:45
   
Text Size

Commit 19410

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Commit 19410

Postby 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?
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

Postby RumbleBBU » 05 Feb 2013, 13:59

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)
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: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?
Did you read the commit comment? That was the whole point of the commit (explained in more detail in the comment).
User avatar
RumbleBBU
 
Posts: 394
Joined: 18 Aug 2012, 04:24
Has thanked: 29 times
Been thanked: 66 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 37 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 37 users online :: 0 registered, 0 hidden and 37 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 37 guests

Login Form