Leandro Doctors
2733516cb9
Organize imports
2020-01-16 08:21:24 +08:00
Bilbo
39f14b40c8
Fix exception when attempting to open file or directory
...
(mostly log directory, crash logs, etc ...) with default application on a system where this is not supported.
If opening fails, show a messagebox that also shows the file/directory name.
2019-12-03 07:02:09 +01:00
Ada Joule
f3d488fa37
Add GRN to sets list and update standard.fmt
2018-11-14 13:35:40 +07:00
ShawnieBoy
14408fc0e7
update counter icons
2018-08-09 13:11:19 +01:00
ShawnieBoy
59e62643f5
add C18 to sets
2018-08-07 18:01:39 +01:00
ShawnieBoy
86039400ec
add M19 to sets
2018-07-03 21:26:42 +01:00
Ada Joule
d213884dc2
Add Saga mechanic ( #1564 )
...
* Add AtBeginOfFirstMainPhaseTrigger and adding lore counter to saga
* Make add counter trigger more generic
* Change begin main phase trigger to Saga-specific
* Add magic.data.RomanToInt
* Add chapter parsing to ARG
* Add SagaChapterTrigger
* Add chapter ability to MagicAbility
* Add lore counter mechanic to Saga card definiton
* Add Saga sacrifice state-based action
* Fix import
* Fix getPendingTriggers
* Add History of Benalia
* Fix adding ETB trigger
* Remove AtBeginningOfFirstMainPhaseTrigger.Saga, Add counters directly in MagicMainPhase.executeBeginStep()
* Remove null case from RomanToInt
* Revert "Remove AtBeginningOfFirstMainPhaseTrigger.Saga, Add counters directly in MagicMainPhase.executeBeginStep()"
This reverts commit d8e5d1f253ab7b54f401f4151b44d39ee927f44c.
* Move isSaga method to IRenderableCard
2018-05-04 14:17:55 +08:00
ShawnieBoy
ce0d1c6f6a
Correct Masters 25 set code
2018-04-23 16:06:46 +01:00
ShawnieBoy
2e89cfb7b8
add Dominaria to sets - new scripts pending gatherer update next week
2018-04-14 03:23:01 +01:00
Martin Petricek
bd5ae5fd7a
Refactoring ( #1543 )
...
* Fix typos.
* Remove unnecessary boxing/unboxing.
* Replace traditional 'for' loops with 'foreach' loops.
* Replace explicit types with <> (diamonds) where they can be inferred.
* Collapse identical catch branches.
* Replace statement lambda with expression lambda for short statements.
* Remove unnecessary imports.
* Replace some lambdas with Comparator.comparing
* Replace Runnables with lambdas.
* Use addAll instead of adding whole collection manually.
* Simplify boolean expressions.
* Remove redundant 'else'.
* Simplify some boolean conditions that are always true or false.
* Inline redundant local variables.
* Remove extraneous semicolons.
* Fix Javadoc errors.
* Replace anonymous classes with lambdas.
* Replace chain of 'if's with switch.
* Remove delaration of exception that is never thrown.
* Use String/StringBuilder properly.
2018-04-08 08:59:14 +08:00
Martin Petricek
4313c14b41
Configurable time limits for running AI game. ( #1505 )
2018-03-18 10:40:19 +08:00
ShawnieBoy
5005d828c6
add M25 to sets
2018-03-12 13:04:33 +00:00
ShawnieBoy
20c7681311
add Ixalan block
2018-01-16 06:05:53 +00:00
ShawnieBoy
27c4b11fc1
add Rivals of Ixalan to sets
2018-01-07 21:04:32 +00:00
melvinzhang
6c760ec0b8
catch exception if version string is not in proper format, fixes #1338
2017-09-24 11:28:22 +08:00
ShawnieBoy
b14db41a93
add Ixalan to sets and scripts missing
2017-09-21 00:10:43 +01:00
ShawnieBoy
00c75ebc64
add Iconic Masters to sets
2017-09-11 20:54:32 +01:00
melvinzhang
ccbe692940
replace StringBuffer with StringBuilder where it is used in a single-threaded way
2017-08-24 15:52:11 +08:00
ShawnieBoy
8e30eac2f9
add C17 to sets and formats
2017-08-16 15:01:05 +01:00
melvinzhang
fb053f09e2
remove setDefaultHandAct, move adding of hand activation into loadAbilities
2017-08-08 17:39:35 +08:00
melvinzhang
a84088394e
add method to get starting life of player
2017-08-08 13:40:27 +08:00
melvinzhang
98c28b1f85
move logic for default cast action into MagicCardDefinition
2017-08-08 09:42:44 +08:00
melvinzhang
2fb4d1bb44
nonland cards without mana cost cannot be cast from hand
2017-08-08 09:37:25 +08:00
lodici
0357e99d06
replace icon for card (script) screen.
2017-07-22 10:42:59 +01:00
melvinzhang
3bc02ad254
use <class>.<method> to call static methods
2017-07-21 18:10:25 +08:00
ShawnieBoy
592e9d258e
sort MagicIcon and TextImages for non-p/t counter types
2017-07-19 19:43:06 +01:00
lodici
c4f22b39bb
replace cardflow icon.
2017-07-18 20:27:09 +01:00
lodici
72c53cd63c
move general config 'cardflow.screen' to StringSetting.
2017-07-18 10:00:01 +01:00
lodici
1c11b93fdf
add option to browse card images using card flow screen from explorer.
2017-07-17 18:36:11 +01:00
lodici
8583bdbbb9
add deck import dialog to deck editor (see #1187 ).
2017-07-16 10:05:51 +01:00
lodici
e13c453cd2
move general config 'animateGameplay' to BooleanSetting.
2017-07-15 23:40:39 +01:00
lodici
d0f18cb57d
move general config 'pass' to BooleanSetting.
2017-07-15 23:33:29 +01:00
lodici
0e9ef6dc5b
move general config 'overlayPermanentMinHeight' to IntegerSetting.
2017-07-15 23:09:28 +01:00
lodici
c220e24998
move general config 'custom.fonts' to BooleanSetting.
2017-07-15 22:50:07 +01:00
lodici
2e79a29003
remove obsolete code associating avatar image with a theme.
2017-07-15 22:11:40 +01:00
melvinzhang
4676453203
use LF for line endings for consistency with other files
2017-07-15 08:53:51 +08:00
melvinzhang
5d5e8e57a9
add small undo icon and use it in undo message, for #1177
2017-07-14 16:08:49 +08:00
lodici
af36483682
implement various GeneralConfig settings using new get/set api.
2017-07-12 18:57:49 +01:00
lodici
5f93fc5dfc
move 'gameVolume' to IntegerSetting.
2017-07-12 18:57:49 +01:00
lodici
3967fc1571
make get/set methods static in GeneralConfig.
2017-07-12 18:57:49 +01:00
lodici
048f251a13
move 'deckFileMaxLines' to IntegerSetting.
2017-07-12 18:57:49 +01:00
lodici
ac7271cd65
display alert icon in stats titlebar if deck contains invalid cards.
2017-07-12 10:18:00 +01:00
lodici
629414f471
Skip invalid cards when generating deck stats.
2017-07-12 00:14:19 +01:00
lodici
5e9eac507f
reorganize code and add comments.
2017-07-11 11:44:34 +01:00
lodici
6389f895dd
migrate general config settings to enums - introducing StringSetting.
2017-07-11 11:44:34 +01:00
lodici
ae6b0e70eb
migrate general config settings to enums - introducing IntegerSetting.
2017-07-11 11:44:34 +01:00
lodici
7114fafcc7
migrate general config settings to enums - introducing BooleanSetting.
2017-07-11 11:44:34 +01:00
lodici
a15a52020f
normalize get* methods to getProperty() - type is determined by default value.
2017-07-11 11:44:34 +01:00
lodici
a1d5e68678
group properties instance setters and getters.
2017-07-11 11:44:34 +01:00
lodici
6c1f8a2012
re-organize code in GeneralConfig.
2017-07-10 17:24:59 +01:00