Commit Graph

129 Commits

Author SHA1 Message Date
a79f2e273a Adds missing tests for ItemHelper
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-17 05:28:46 +01:00
347b69b2a8 Removes disableMaterialLimitation
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
Removes the disableMaterialLimitation option
Replaces EnchantmentTarget.BREAKABLE.includes(item) with getMaxDurability(item) > 0 as it seems more generic
2023-01-16 19:45:41 +01:00
e5cb3b4a30 A lot of tests, and some improvements
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
Adds a lot more tests for some utility classes
Adds a new option to disable the hard-coded limitation "EnchantmentTarget.BREAKABLE" which can be useful for servers with custom items or similar.
Makes enchantment name matching case-insensitive.
Prevents an exception is enchantment name contains invalid characters.
Makes invalid objects supplied to asStringList return null instead of throwing an exception.
Uses isBlank instead of trim.isEmpty in the isEmpty method
Re-uses the random generator if calculating salvage several times
2023-01-16 17:42:54 +01:00
7d468115e0 Makes the npc talking format configurable #19 2023-01-16 03:02:13 +01:00
bbb93bb0eb Fixes a bug in multi-item salvage
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-14 17:46:29 +01:00
7cc2aef9d4 Adds some tests for the salvage helper
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-14 15:10:40 +01:00
8e5d4c7a61 Adds a helper class for calculating random item salvage #18
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-13 20:34:34 +01:00
89cebb85c3 Changes version to SNAPSHOT
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-11 14:56:30 +01:00
0d077ccdbb Bumps version to 1.0.4 for release
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-11 14:38:35 +01:00
1bc03d7670 Improves some README descriptions 2023-01-11 14:29:59 +01:00
f192a5a2b5 Fixes a bug in the preset prefix logic
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-11 02:46:30 +01:00
bd00a59d08 Makes it possible to edit reforgeAbleItems globally #17 2023-01-11 01:54:52 +01:00
8423eabc57 Fixes handling of preset replacement 2023-01-11 01:32:48 +01:00
488d4c7589 Makes some settings inherit properly #16 2023-01-11 00:51:05 +01:00
753c7c6275 Adds optional ability to reforge anvils #15
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-09 23:47:17 +01:00
a856aa03e0 Implements material wildcards for costs #14
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-09 16:53:52 +01:00
913cc5736e Prevents filters from matching non-reforge-able materials 2023-01-09 15:25:05 +01:00
a5ae3cb295 Fixes a bug caused by "-" being consumed
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-09 15:13:55 +01:00
7d940ee334 Updates dependencies
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-09 05:06:33 +01:00
ea54492ccf Adds negation for material names and presets #13 2023-01-09 05:03:28 +01:00
30b8507b9f Improves the tab-completion values for reforgeAbleItems
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2023-01-06 14:52:30 +01:00
c5ffa2b0c4 Improves setup information 2023-01-06 00:03:33 +01:00
a9cfea2d32 Fixes a repo name
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2022-11-26 15:37:14 +01:00
1bab972c13 Improves Jenkinsfile 2022-11-26 15:14:53 +01:00
d1c549fd20 Adds auto deploy
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2022-11-26 14:51:52 +01:00
c9ff3af6ac Adds distribution management and Jenkinsfile
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
2022-11-26 04:13:41 +01:00
5089a721a0 Fixes some minor issues
Fixes some repositories using http instead of https
Fixes formatting for tables
2022-11-14 02:44:18 +01:00
a036c39dc3 Updates code to account for KnarLib changes 2022-11-07 22:22:23 +01:00
a501a3cbb4 Changes things for the non-static Translator 2022-11-07 15:20:30 +01:00
7875e9a705 Adds missing time unit strings 2022-11-07 01:59:49 +01:00
ac5f032ce9 Uses a placeholder for the plugin version 2022-11-07 00:22:03 +01:00
7784ee46a5 Adds an alert if an update is available 2022-11-07 00:18:13 +01:00
3c805ee284 Uses KnarLib for common tasks 2022-11-07 00:07:32 +01:00
3c4394d6fa Bumps version to 1.0.3 2022-11-05 04:40:09 +01:00
d0f4ff11b7 Adds missing null checks before asStringList 2022-11-05 04:39:18 +01:00
ee2b503886 Bumps version to 1.0.2 2022-11-05 04:28:28 +01:00
89c1c4a56c Adds a new enchantmentBlocklist option
The enchantmentBlocklist allows specifying a list of enchantments blacksmiths should be blocked from adding to items. Especially curse of binding and curse of vanishing are problematic as the effect is quite bad. Mending is possibly undesirable as it's supposed to be quite rare.
2022-11-05 04:21:47 +01:00
012d1df099 Allows 0 for positive integers and doubles
It wasn't possible to set extra enchantment chance to 0. This fixes that problem.
2022-11-04 21:31:56 +01:00
10bfd29468 Removes outdated presets for the reforgeAbleItems list 2022-10-26 21:02:36 +02:00
849e9d7a9d Adds Economy plugin to dependencies to prevent confusion 2022-10-26 20:33:44 +02:00
89d1f79f7d Improves description of the reforge-able items format 2022-10-26 20:20:35 +02:00
36e254c0df Fixes README formatting creating an unintended space 2022-10-26 20:08:34 +02:00
05440e66a0 Bumps version to 1.0.1 2022-10-26 19:51:33 +02:00
4d740521f3 Fixes tab-completion when editing default messages 2022-10-25 19:45:45 +02:00
b38cfbe710 Improves description of unsetting per-material/enchantment costs 2022-10-25 18:46:12 +02:00
cc7d66f270 Fixes several bugs and problems
Fixes getting the name of enchantments
Fixes inconsistencies in material and enchantment name-checking
Allows using "null" or "-1" to unset per-material or per-enchantment configuration options
Fixes a bug where basePrice was set to a material name instead of the price for the material being displayed
Adds missing tab-completion for material/enchantment costs
Prevents inconsistencies in deciding if a value is null
2022-10-24 13:57:58 +02:00
39e164c9c8 Implements language selection properly
Adds a configuration option for the plugin language
Loads the selected language instead of always loading "en"
Makes sure the language is updated upon reloading
2022-10-21 00:46:01 +02:00
9f433cb0f1 Fixes some bugs regarding displaying the exact time remaining 2022-10-20 12:03:16 +02:00
64004e4267 Fixes some problems in the calculation of the remaining cool-down time 2022-10-18 13:09:38 +02:00
3c677c18cb Makes sure to invalidate sessions properly
Sessions are invalidated if the player leaves the NPC or if 10 seconds pass, but only if the blacksmith isn't currently reforging.
2022-10-18 12:44:35 +02:00