Commit graph

4145 commits

Author SHA1 Message Date
Oleg Agafonov
f653fd4c34 tests: improved game/chat logs in load tests (now it shows in txt format instead html, example: test_TwoAIPlayGame_Multiple) 2023-10-11 15:00:33 +04:00
Oleg Agafonov
fe8b8e1def server: fixed npe error on load tests (miss buffer timer), code refactor 2023-10-11 14:15:15 +04:00
xenohedron
ac4dae5061 adjust message wording 2023-10-09 23:52:57 -04:00
Susucre
f14479c53c
Add custom options for starting life total and starting hand size (#11259)
* add startHandSize / startLife to the custom option panel

* use the custom startLife/startHandsize in all Game Modes
2023-10-06 23:22:48 -04:00
xenohedron
2ec532b157 add tray message on match start if window inactive 2023-09-30 16:28:44 -04:00
xenohedron
0baf89cb0d reduce default skill level of AI (from 6 to 2)
(higher skill level takes longer without making better decisions)
2023-09-30 16:18:57 -04:00
xenohedron
4883679cc7 GUI: enhance visibility of timer (resolves #11236) 2023-09-30 16:18:57 -04:00
xenohedron
bec7c22990 slightly reduce draft protection timer 2023-09-28 00:03:27 -04:00
xenohedron
7c535658f0 more defensive null checking in draft panel 2023-09-27 23:54:29 -04:00
Artemis Kearney
41874b0b4b
new feature: Emblem Cards (#10498)
* new feature: Emblem Cards

Allows match/tournament creator to specify cards to give each player
emblem versions of (or just the starting player for symmetric effects).

Technical details:
- new UI for specifying emblem cards (.dck files)
  - available for all match/tournament types
- new class `EmblemOfCard`
- new method `copyWithZone` on `AbilityImpl` (used to make abilities
  work from command zone)
- new fields on `GameOptions` and `MatchOptions` for emblem cards
- emblems are granted after mulligans, before first turn (technically
  after Planechase starting plane creation)

* fixes

* defaults for emblem cards in match options (fixes quick game buttons)

* minor fixes

* use DeckCardInfo instead of Card for emblem cards options

* restore accessible parent properties

* fix images for card emblems

* look up cards in a way that preserves which art

* fix typos; make Emblem.sourceObject protected

* add descriptions to planechase and emblem cards

* fixes

* add some unit tests for known working cards

* fix author name

* add explanation comment

* fix up tests

* copyWithZone: no longer modifies zone for singleton abilities

* directly check for MageSingleton
2023-09-26 22:47:13 -04:00
Susucre
1acb1d6c9a
Tweak the Pillar of the Paruns format (#11197) 2023-09-24 22:09:38 -04:00
Susucre
a58cac2fd5
draft improves: add protection timer (2 sec) to avoid double pick (#11188) 2023-09-23 20:25:48 -04:00
Susucre
35710efa60
Add new Set files, as well as add new entries to mtg-cards-data.txt (#11193)
[SPG] [LCI] [LCC] [REX]
2023-09-23 20:24:44 -04:00
Oleg Agafonov
a3e5754d10 GUI: improved preferences dialog and battlefield:
* removed outdated storm counter button and settings (related cards must have same card hint);
* clean preferences dialog from empty events/actions;
* fixed logs folder names to release names in the labels;
2023-09-23 21:13:59 +04:00
Oleg Agafonov
abda1fb53b GUI: fixed wrong feedback panel status in computer games (related to #11189) 2023-09-22 11:00:47 +04:00
Oleg Agafonov
598aaa7632 GUI: fixed cards disappear in stack area on some use cases like GUI resize (closes #8158) 2023-09-22 10:24:52 +04:00
Oleg Agafonov
103f75975c Choose triggers order dialog - fixed that it can't remember ability name with card name in it 2023-09-22 09:44:39 +04:00
Oleg Agafonov
342979a55a
network: reworked client-server events (related to triggers dialog problem from #11173) (#11189)
* added bad connection mode to test client works on slow network, use -Dxmage.badconnection;
* added bad connection protection in events processing due event type;
* split events to different types (can be ignored, must be synced, etc);
* removed some unused server events.
2023-09-21 18:40:52 +04:00
Oleg Agafonov
0bb837cbe5 refactor: removed unused data from images download, improved code 2023-09-17 14:50:33 +04:00
Susucre
ec3e067c9d
GUI: display P/T of vehicles in hover panel (#11153) 2023-09-12 21:43:25 -04:00
Susucre
b62b089659
Autosave limited decks on submit (#11147)
* Autosave limited decks in gamelogs folder

* differentiate LIMITED_SIDEBOARD_BUILDING from LIMITED_BUILDING
2023-09-12 21:43:13 -04:00
xenohedron
e87bf3724c final cleanup for updated set names 2023-09-12 00:56:41 -04:00
xenohedron
94d65ddad1 set rename: PWCQ -> WMC 2023-09-12 00:42:23 -04:00
xenohedron
9922c5f7c1 reorganize sets: remaining DCI promos 2023-09-12 00:42:23 -04:00
xenohedron
97e17d7c3b rename sets: Gateway 2006-8 -> DCI Promos 2023-09-12 00:42:23 -04:00
xenohedron
fa34983cbc reorg sets: IDW Comics Inserts 2023-09-12 00:42:23 -04:00
Oleg Agafonov
962bb2e1ea clean code 2023-09-07 05:35:55 +04:00
Oleg Agafonov
8a65b0f149 refactor: removed netbeans's auto-generated comments 2023-09-02 16:05:29 +04:00
chesse20
f4d6294148
images: added miss set's symbols past m20 (#11092) 2023-09-02 03:13:59 +04:00
PurpleCrowbar
5fd8255a8a Fix Teyo wall token color and add its image 2023-08-31 23:37:58 +01:00
PurpleCrowbar
43a2bf0d9a Add WOC token images 2023-08-31 23:37:58 +01:00
PurpleCrowbar
fb7e5a7688 Add WOE token images 2023-08-31 23:37:58 +01:00
arcox
2f0c1d84c5
Lint: fix 'declarations should use interfaces instead of classes' bugs (#11082) 2023-08-31 21:42:45 +04:00
bobwoco
a7b06483ab
dev: added back concurrent and add dep comments, related to #11028 (#11059)
Co-authored-by: Ethan Ward <ethanandrewward@gmail.com>
2023-08-29 04:06:43 +04:00
Oleg Agafonov
aeea3857f4 [DMU] fixed game error on Karn, Living Legacy emblem usage (miss emblem in token database); 2023-08-25 18:09:26 +04:00
theelk801
d8cc16d4fc [WOT] add set 2023-08-24 17:29:57 -04:00
Susucre
5062c84098
Refactor: removed server side objects from a client side game's data (#10788)
* Clean original values transmitted with CardView.originalObject
* Move RateCard to mage.Common, support cardView as argument.
* Clean PermanentView constructor for TestCardRenderDialog
2023-08-24 12:04:07 +04:00
dependabot[bot]
6df7457665
Bump org.apache.xmlgraphics:batik-transcoder in /Mage.Client
Bumps org.apache.xmlgraphics:batik-transcoder from 1.13 to 1.17.

---
updated-dependencies:
- dependency-name: org.apache.xmlgraphics:batik-transcoder
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-23 17:54:38 +00:00
Susucre
ea6f3c05de
[GUI] Add Token on type line. (#10813)
* [GUI] Add Token on type line.

* rewrite comment.
2023-08-16 22:45:15 -04:00
theelk801
eeb0f9b7d8 [WOC] add set 2023-08-15 20:24:09 -04:00
PurpleCrowbar
6ea286eb89 Add CMM token images 2023-08-10 01:10:17 +01:00
Artemis Kearney
722627baa2
Create new "custom options" button/dialog, consolidate game-modifying options there (#10768)
* create CustomOptionsDialog; update NewTournamentDialog to use it

* add custom options button to new table/tournament dialogs

* fix buffer time in new table dialog

* further UI improvements

- move multiplayer options back out to NewTableDialog
- hide multiplayer options when all are disabled
- rearrange other options for consistency

* update button label to show number of active custom options

* remove commented-out code
2023-08-08 01:37:38 -04:00
Artemis Kearney
4d72e790dc
bugfix: hide Packs: label for constructed rather than hiding panel twice (#10771) 2023-08-07 16:54:30 -04:00
Artemis Kearney
9ba0da00ff
Basic groundwork for extra decks (contraptions, attractions) (#10378)
* extra deck cards not counted in deck size

* extra deck handling in deckbuilder

* move responsibility for extraDeckCard boolean to CardImpl

* remove redundant field copy
2023-08-06 21:06:32 -04:00
Artemis Kearney
978ebfc873
add UI for buffer time feature the right way (#10764)
* add UI for buffer time feature the right way

* save buffer time values
2023-08-06 20:00:55 -04:00
sprangg
287df7af21
Wait 2 seconds before making the draft pick for a timed out player (#10733)
* The draft session waits for 5 seconds before making the pick for the timed out player

* Formatting

* Renamed constant

* Tweak

* If the draft pick's timeout value would increase the client's pick's timer, don't set it (might happen if the client or server is lagging)

* Lowered BOOSTER_LOADING_INTERVAL and AUTOPICK_BUFFER

---------

Co-authored-by: sprangg <a@b.c>
2023-08-06 20:00:42 -04:00
theelk801
2633392807 [PL23] add set 2023-08-06 09:08:22 -04:00
theelk801
4242f2b226 [PL21] add set 2023-08-06 09:05:02 -04:00
theelk801
4fb0cc91d2 [PL22] add set 2023-08-06 08:55:05 -04:00
xenohedron
f1757e5628
Add {P} symbol for Rage Extractor (#10762) 2023-08-05 20:53:52 -04:00