Commit Graph

4069 Commits

Author SHA1 Message Date
Anthony Calosa
157121f048 fix ToggleButton 2024-08-02 22:08:59 +08:00
Jetz72
d62dfe1c8c Miscallaneous Cleanup Part 2 - Lambdas and Method References (#5737)
* Cleanup - Unnecessary Boxing

* Cleanup - Unnecessary Unboxing

* Cleanup - For-Each Loops

* Cleanup - `indexOf != -1` -> `contains`

* Cleanup - Merge identical catch blocks

* Cleanup - Try-with-resources

* Cleanup - System.lineSeparator

* Cleanup - Reference types to primitives
Some loops over Integers were switched to IntStreams to hopefully cut down on overall boxing.

* Cleanup - Manually filling and copying arrays

* Remove unused imports

* Switch a lambda to a method reference

* Cleanup - CardPredicate Aggregates to method references

* Cleanup - Other static functions to method references

* Cleanup - Ambiguous class reference
Unclear when or how this happened...

* Cleanup - Anonymous -> Method reference

* Cleanup - Anonymous -> Lambda

* Cleanup - Comparator helper methods

* Cleanup - final method in final class

* Cleanup - private final methods

* Remove unused imports

* Convert a couple more lambdas to comparators.

* Simplify creature type list comparison.

---------

Co-authored-by: Jetz <Jetz722@gmail.com>
Co-authored-by: tool4ever <therealtoolkit@hotmail.com>
2024-08-02 08:23:58 +03:00
Chris H
5fc6d38954 Autoclose FileOutputStreams (#5753) 2024-08-01 21:22:40 +03:00
Agetian
c081294f82 - Fix the AI sideboarding mode not loading on startup. 2024-08-01 08:56:50 -04:00
Jetz72
ec9f6e2d2b Added attraction light icons (#5663)
Refactored functional variants to be merged in the card face rather than the card factory
Some variant characteristics now show in deck builder columns
Fixed loading progress amount
"[card] has neither ManaCost nor Color" warning now actually displays when these are missing.

Co-authored-by: Jetz <Jetz722@gmail.com>
Co-authored-by: tool4ever <therealtoolkit@hotmail.com>
2024-07-30 08:28:45 +03:00
Anthony Calosa
8f6f8175bb Merge branch 'master' into master2 2024-07-30 06:03:56 +08:00
Anthony Calosa
07e2582063 update 2024-07-30 01:06:52 +08:00
Anthony Calosa
5797c7ee5f Fix stuck dialogue when reloading save 2024-07-30 00:47:03 +08:00
Chris H
dad04b5fe7 Fix adventure draft not being able to draft your 5th card 2024-07-29 10:26:15 -04:00
Jetz72
3968c7e197 Miscallaneous Cleanup (#5703)
* Cleanup - Unnecessary Boxing

* Cleanup - Unnecessary Unboxing

* Cleanup - For-Each Loops

* Cleanup - `indexOf != -1` -> `contains`

* Cleanup - Merge identical catch blocks

* Cleanup - Try-with-resources

* Cleanup - System.lineSeparator

* Cleanup - Reference types to primitives
Some loops over Integers were switched to IntStreams to hopefully cut down on overall boxing.

* Cleanup - Manually filling and copying arrays

* Remove unused imports

* Switch a lambda to a method reference

---------

Co-authored-by: Jetz <Jetz722@gmail.com>
2024-07-29 17:23:43 +03:00
Anthony Calosa
5d202a65af update Boss dialogue translations 2024-07-29 20:37:18 +08:00
Chris H
5c55d7b001 Set User agent to modern chrome (#5708) 2024-07-28 12:56:01 +03:00
Anthony Calosa
c9ee464b72 enable Boss dialogue 2024-07-28 15:19:18 +08:00
Jetz
983f2d2856 Fixed QuestCommander deck editor, hopefully. 2024-07-23 18:17:59 -04:00
Hans Mackowiak
1a0f025ca7 forge-gui-mobile: fix symbolLookup init too early 2024-07-21 07:51:40 +02:00
Anthony Calosa
1504f221fc update prefs 2024-07-19 10:55:23 +08:00
Anthony Calosa
83e23e59e7 update 2024-07-19 10:23:09 +08:00
Anthony Calosa
8fe5891c61 prevent crash using invalid theme 2024-07-19 10:06:07 +08:00
kevlahnota
031fcf0fc9 update textrenderer (#5641)
try to prevent null
2024-07-18 14:27:44 +08:00
Simisays
d3e931cc37 Update AdventureEventController.java 2024-07-05 14:41:40 -04:00
Simisays
7046b108dd update 2024-07-05 14:41:40 -04:00
Chris H
3a61118ade Merge pull request #5357 from Jetz72/Attractions
Attraction Support
2024-07-02 11:02:43 -04:00
fernandomfgomes
214edcfe6d Update AdventurePlayer.java
Both goldLoss and lifeLoss where not being set on creation + update difficulty. So regardless of difficulty chosen, on defeat the default value on the difficultyData class for the properties (0.2f) was being used
2024-07-01 08:46:34 -04:00
kevlahnota
d769da9b7d fix UnsupportedOperationException (#5488) 2024-06-29 13:41:43 +08:00
GitHub Actions
64b4b58399 [maven-release-plugin] prepare for next development iteration 2024-06-28 13:06:40 -04:00
GitHub Actions
463e4b1267 [maven-release-plugin] prepare release forge-1.6.63 2024-06-28 13:06:40 -04:00
Chris H
b2dd1d6f21 Update Forge.java 2024-06-28 13:06:40 -04:00
Jetz
cfc33fd491 Cleanup a couple comments 2024-06-25 17:17:14 -04:00
Jetz
3e6871ce86 Merge branch 'master' into Attractions
# Conflicts:
#	forge-core/src/main/java/forge/deck/DeckFormat.java
2024-06-19 22:58:49 -04:00
Jetz
88c9559eea Mobile Deck Editor support for extra sections, including attractions. 2024-06-16 20:51:03 -04:00
Jetz
fbc475998e Support for programmatically setting the advanced search filter for the mobile card manager. 2024-06-16 19:54:20 -04:00
kevlahnota
14be75e711 add annihilator & exalted icon and update toxic icon (#5426)
* add annihilator icon and update toxic icon

* add exalted icon
2024-06-14 15:58:36 +03:00
Anthony Calosa
b5c9dcbcb3 unused import 2024-06-12 19:17:53 +08:00
Anthony Calosa
37facd7e13 update selectbox BG 2024-06-12 19:03:16 +08:00
Anthony Calosa
50c008669d update crack overlay simple progression 2024-06-12 11:42:29 +08:00
Jetz
614cc96f4f Support for adding Tabs to TabPageScreen 2024-06-09 13:31:04 -04:00
Anthony Calosa
66f5704a8b update 2024-06-09 18:43:14 +08:00
Anthony Calosa
d76453b8ad remove space 2024-06-09 18:22:49 +08:00
Anthony Calosa
6cdfe47d39 Add Backup/Restore Data Adventure Mode
- backup file should be on downloads directory
- fix some menu buttons double click/touch duplication
- update some translation
2024-06-09 18:15:45 +08:00
Jetz
49e7576742 Merge remote-tracking branch 'origin/master' into Attractions
# Conflicts:
#	forge-core/src/main/java/forge/card/CardFace.java
#	forge-core/src/main/java/forge/card/CardRules.java
2024-06-07 22:13:24 -04:00
kevlahnota
6012cde11b add Ward and Wither keyword icon (#5364)
-closes #5361
2024-06-03 17:31:33 +03:00
Anthony Calosa
6df802ce32 add Ward and Wither keyword icon
-closes #5361
2024-06-03 21:52:03 +08:00
Jetz
1b07896afe Merge branch 'master' into Attractions
# Conflicts:
#	forge-core/src/main/java/forge/card/CardRules.java
2024-06-02 02:16:31 -04:00
Jetz
174db0cac6 I think I see why nobody wanted to do this 2024-06-02 02:08:36 -04:00
Hans Mackowiak
610697b744 Fix Image not loading on some skins (#5301) 2024-05-26 07:50:24 +00:00
Hans Mackowiak
d384da986b add ManaCostShard Map and cleanup Desktop and Mobile (#5215)
* add ManaCostShard Map and cleanup Desktop

* refactor mobile and remove SourceFile enum

* refactor mobile using ManaCostShard

* Fix Phyrexian Symbols and better String=>SkinProp mapping
2024-05-18 12:13:19 +02:00
Hans Mackowiak
31ab875d6e ManaCostShard: add Hybrid Colorless (#5199)
* ManaCostShard: add Hybrid Colorless

* Add Hybrid Colorless Sprite

* fix CostReduction for ColorlessHybrid

---------

Co-authored-by: tool4ever <therealtoolkit@hotmail.com>
2024-05-06 08:21:01 +03:00
Chris H
106e3acf2a Update Forge.java 2024-04-25 23:38:16 -04:00
GitHub Actions
8a8c77c4ae [maven-release-plugin] prepare for next development iteration 2024-04-25 19:29:38 -04:00
GitHub Actions
a4591fe3ac [maven-release-plugin] prepare release forge-1.6.62 2024-04-25 19:29:38 -04:00