Commit Graph

29 Commits

Author SHA1 Message Date
tastybento 9d45f08fb1 Test coverage (#199)
* Test coverage for Challenges Command

* Added CompleteChallengeCommand test class

* Added Utils test class

* Added ChallengesGUI test class

* Fix code smells from sonarcloud analysis

* Added .gitignore

* Added Travis CI config file

* WIP ChallengesManager Test class

* Added ChallengesManager test class

* Removed debug

* Removed code smells.

* Added ChallengesAddon test class.

* Added onDisbale test

* Added new TryToComplete test class - WIP

Covers inventory challenges.

* Added Island Challenge entity tests to TryToComplete test class
2019-10-30 08:44:26 +02:00
tastybento 2aa437f071 English update (#193)
* Organized imports

* Minor code cleanup

* Updated English locale file.
2019-10-10 08:35:25 +03:00
BONNe 902a1993a2 Add UTF-8 CharSet for file writer to avoid issues with incorrect char saving. 2019-09-08 20:33:19 +03:00
BONNe 4e6d37cd90 Rework Challenge Object Data storing.
Requires MIGRATION if upgrade from older version.
2019-09-08 20:03:46 +03:00
NotMyFault 68e09d6946 Fix typos and make challenge descriptions looking a bit nicer (#177) 2019-09-04 18:21:39 +03:00
BONNe1704 f611727d4e Implement WebManager that will download Challenges Libraries from GitHub.
Implement GUI for selecting and downloading Challenges Libraries.
2019-09-02 17:56:24 +03:00
BONNe1704 6d8b1cb761 Fix some issues in default challenges.
- remove parallel stream reading, as it may not load all challenges/levels.
- fix chef challenge not detected by level.
- fix some typos.
2019-08-28 17:21:39 +03:00
BuildTools ac79fa5d56 Completely drop ability to import ASkyBlock challenges.
This option was not working properly and were used wrongly. To avoid that, importing challenges and player data will be handled by converter.
2019-08-26 09:08:56 +03:00
BuildTools 54f91180d6 Fix issue in importing challenges from ASkyBlock when importing crashes with null-pointer.
Null-pointer happened because there were mistake in level unique_id getting. It was leftover from old unique_id scheme...
2019-08-14 22:00:11 +03:00
BONNe1704 3985efa4d0 Fix issue when uniqueID changes did not work for imported challenges. 2019-08-01 15:06:06 +03:00
BONNe1704 cd85a929d0 Fix issue when custom generated default challenges were overwritten and deleted. 2019-07-08 09:36:28 +03:00
BONNe1704 34ed09e768 Change json adapter factory to BentoBoxTypeAdapterFactory class. 2019-05-09 16:45:53 +03:00
BONNe 93da0c714c Implement ability to import/generate default.json file.
Remove old unnecessary methods.

Improve default.json challenges.
2019-05-01 12:46:54 +03:00
BONNe ec099cee9c Improve default challenge loading and creating.
Remove world name from challenge and challenge level ids when default file is created.
Reassign correct world name to unique id when challenges and levels are loaded.
2019-04-26 11:18:57 +03:00
BONNe1704 017147ff3f Improve and simplify default challenge data storing. 2019-04-25 18:21:10 +03:00
BONNe1704 188e86d546 Small code cleanup. 2019-04-25 11:42:04 +03:00
BONNe 5a5d2d7782 Create method that will generate default.json file from existing challenges in memory and from given world. 2019-04-25 00:48:29 +03:00
BONNe 4b233e2246 Start to implement default challenge loading.
Work in progress.
2019-04-24 07:45:05 +03:00
BONNe1704 8d238a5789 Remove all deprecated code.
Remove Challenges.yml from resources, as old standard is outdated and there is no point to support it.
2019-04-11 12:49:43 +03:00
BONNe ab3275cd69 Rework Challenges Addon Language structure.
Reorganize structure.
Add missing translations.
Add colors.
2019-02-12 01:38:16 +02:00
BONNe b2201ec48d Add ability to specify Lore line length via Settings. 2019-02-11 15:29:19 +02:00
tastybento 78f924b7c3 Added defaults to getString for challenge import
This will avoid nulls if challenge lines like itemReward are missing.

Should help https://github.com/BentoBoxWorld/Challenges/issues/53
2019-01-29 14:38:26 -08:00
BONNe1704 78fccc996e Fix some issues in ImportManager. 2019-01-28 18:15:43 +02:00
BONNe1704 abfe81c5e6 Add GuiButton that allows to load 0.3 challenges.
Add Necessary methods in ImportManager.
2019-01-28 17:53:23 +02:00
BONNe1704 9c4c5b7d86 Fix issue when Levels were not loaded with world name in unique ID.
Fix crash that appears after renaming Level to Other challenge type.
2019-01-23 18:01:19 +02:00
BONNe1704 590b3f114c Rework ChallengesManager.
Implement all methods that were only placeholders.
Remove all unnecessary old methods.
Implement new methods in all classes.

User and Admin command now opens new GUI.
2019-01-23 17:30:30 +02:00
BONNe1704 f75e4e080c Rework Challenge, ChallengeLevel and ChallengesPlayerData classes.
Challenge now will not know their world, as it is not necessary.
Remove ICON type, as it is useless.
Rename Level to Other, as under it will be not only level things.
Rename slot to order, as it was weird that users could define slot but not order. Order is easier to understand and use.

ChallengesLevel now knows all their levels.
Each challenge level only will be for single world.
Rename some variables.

ChallengesPlayerData was just adapted with changes in challenges and level classes.
2019-01-23 16:33:33 +02:00
BONNe1704 dba5a44461 Rename Challenges and ChallengeLevels classes. 2019-01-23 16:09:38 +02:00
BONNe1704 3971519d1d Rename FreshSqueezedChallenges to ChallengesImportManager.
ChallengesImportManager name makes more sense then FreshSqueezedChallenges
2019-01-10 11:16:04 +02:00