Commit Graph

308 Commits

Author SHA1 Message Date
micheal65536 59b26b37f9 Fix item duplication vulnerability 2018-02-11 16:12:22 +00:00
Muhammad Nur Hidayat Yasuyoshi (MNH48.com) 7226dd6174 Add Malay translation 2018-02-07 17:39:38 +00:00
stujones11 4fc51971d1 Fix registered group level display 2018-01-10 19:16:23 +00:00
stujones11 688e21f285 Bump version to 0.4.10 2017-10-21 17:57:12 +01:00
stujones11 d5896a04e2 Check that player inventory returns a valid table 2017-10-20 20:17:37 +01:00
stujones11 d979815a49 Fix libpng sRGB profile warnings 2017-10-20 19:38:22 +01:00
Hamlet cca523f193 Italian locale 2017-08-18 13:21:30 +01:00
fat115 ae448c150c added complete intllib support (i18n)
added french translation
2017-08-08 18:09:27 +01:00
stujones11 0454d72c72 Ensure valid inventory table when setting armor 2017-08-01 19:03:17 +01:00
stujones11 9fa95b2e2c Run update callbacks when player visuals change, closes #113 2017-08-01 18:48:06 +01:00
stujones11 43c9984d57 Do not drop armor in uloaded areas 2017-08-01 18:42:04 +01:00
AntumDeluge cc26d04345 Replace deprecated function 'intllib.Getter':
- Check first for 'intllib.make_gettext_pair', otherwise continue using
function 'intllib.Getter'.
2017-07-09 14:29:11 +01:00
AntumDeluge 38d79b91a1 Replace deprecated methods:
- 'setting_get' with 'settings:get'
- 'setting_getbool' with 'settings:get_bool'
- 'setting_set' with 'settings:set'
2017-06-21 17:48:18 +01:00
Alexander Weber db8fb5ebd4 bugfix and small optimization 2017-06-21 17:47:24 +01:00
Alexander Weber 2150fcea8d return the png suffix in get_player_skin for complete texture definition to support more complex textures
Note the armor.get_player_skin() could be redefined in other mods to privide the more complex textures
2017-06-21 17:47:24 +01:00
stujones11 ea29ec6f6f Register armor after mod compat tests, fixes #106 2017-05-10 20:33:49 +01:00
stujones11 793c74856f Fix nil index in on_damage callback 2017-05-03 17:56:32 +01:00
stujones11 47734969e2 Bump version to 0.4.9 2017-04-28 19:06:38 +01:00
stujones11 1af0bb60f8 Rename on_punch callback to avoid potential conflict with nodes 2017-04-21 18:33:30 +01:00
stujones11 a11b3302e1 Move armor initialization back out of the api 2017-04-19 21:53:13 +01:00
stujones11 664d9fbfef Increase fleshy level of wood and cactus leggings 2017-04-19 19:42:12 +01:00
stujones11 4dd7e41749 Add damage method and update README.txt 2017-04-19 19:00:00 +01:00
stujones11 df429ee487 Run inventory equip callbacks before set_player_armor 2017-04-16 19:34:09 +01:00
stujones11 7566ecccee Initialize armor after all on_joinplayer callbacks have run 2017-04-16 16:52:49 +01:00
stujones11 99bc8cf2d3 Reverse order of stack and index in callbacks for consistency 2017-04-15 20:44:05 +01:00
stujones11 a2ec13e28d Only allow armor items in the armor inventory 2017-04-15 18:00:10 +01:00
stujones11 065815eec1 Include stack index it armor item callbacks 2017-04-15 17:54:39 +01:00
stujones11 b741b7426b More player validity checks 2017-04-13 20:34:55 +01:00
stujones11 db312b3245 Code styling 2017-04-13 20:11:15 +01:00
stujones11 de2c47f334 More protection from un-initialized player crashes 2017-04-13 19:47:43 +01:00
stujones11 888fbacb49 Prevent potentially bogus warning 2017-04-11 21:26:06 +01:00
stujones11 50453aa5a6 Fix warnings 2017-04-11 20:55:28 +01:00
stujones11 b45fbd0f2a Log warning if initialization fails and validate armor.def for UI 2017-04-11 20:42:58 +01:00
stujones11 9ffcc19fd7 Improve player initialization and increase default delay 2017-04-11 19:34:06 +01:00
Alexander Weber 6359b0a0ed bugfix: the count was lost 2017-04-10 18:24:27 +01:00
stujones11 20edce6c55 Better balance of armor weights 2017-04-09 18:49:44 +01:00
stujones11 6e58d1280b Add minor physics penalties to metal armors 2017-04-09 18:37:55 +01:00
stujones11 20d4728829 Only reciprocate damage of valid tool items 2017-04-09 18:07:53 +01:00
stujones11 7cfd744ff3 Respect flammable group when fire is protection enabled 2017-04-09 17:34:22 +01:00
stujones11 a76a35f177 Fix regression with heal_multiplier config 2017-04-09 16:25:52 +01:00
stujones11 3951c833da More documentation ammendments 2017-04-09 15:00:48 +01:00
stujones11 e9a2c57826 Correction to example code 2017-04-08 22:32:46 +01:00
stujones11 0ec7858937 Add punch damage groups and effects 2017-04-08 21:32:56 +01:00
stujones11 1e059f2557 Bugfix: recognise boolean false in configuration 2017-04-05 17:51:50 +01:00
stujones11 1fdff7adaa Make water protection optional, default true
This can save a `global_step` regisration if neither fire or water
protection are enabled.
2017-03-31 22:03:59 +01:00
stujones11 23e4d5114f Add support for intllib 2017-03-31 20:12:20 +01:00
stujones11 4083782246 Improve get_armor_formspec 2017-03-29 19:31:00 +01:00
stujones11 5911447048 Move shields level reduction to shields mod 2017-03-29 19:13:13 +01:00
stujones11 3aac5c98f4 Fix movement and level bugs 2017-03-29 17:44:40 +01:00
stujones11 fe9664589a Fix potential missing texture bug 2017-03-26 22:46:51 +01:00
stujones11 11ce84873b Add support for non-fleshy damage groups, closes #47 2017-03-26 20:53:04 +01:00
stujones11 86fd6b0d7d Fix crash caused by 27a3823eed 2017-03-23 00:59:21 +00:00
stujones11 27a3823eed Improve error logging, reduce log level to warning 2017-03-22 19:00:48 +00:00
Alexander Weber f0edb9a710 Inventory compat cleanup
fix inventory_plus after cleanup. Create own register_on_player_receive_fields for this inventory

removed smart_inventory (moved to the inventoy mod), adjusted sfinv

moved sfinv to own mod 3d_armor_sfinv

moved unified_inventory to 3d_armor_ui

moved inventory_plus support to own mod 3d_armor_ip
2017-03-21 14:50:17 +00:00
stujones11 75191490c2 Use api call to get player skin 2017-03-19 18:52:51 +00:00
stujones11 f91af02c45 Fix inventory paging bugs caused by previous commit 2017-03-19 18:06:54 +00:00
stujones11 3843578a33 Remove unnecessary code 2017-03-19 17:22:24 +00:00
stujones11 1570efb7ac Depreciate update_inventory and use on_update callback 2017-03-19 16:10:52 +00:00
stujones11 5517be8ff2 Replace missed global config, fixes #94 2017-03-19 13:28:55 +00:00
stujones11 709535dff0 Only apply valid wardrobe mod skins, fixes #93 2017-03-18 22:14:08 +00:00
stujones11 a1d904c517 Remove redundant code 2017-03-18 22:02:11 +00:00
stujones11 3c2cb16351 Correction to documentation 2017-03-18 20:39:03 +00:00
stujones11 6bf28dc2c5 Only allow one of each armor element in armor slots
Required, otherwise equip callbacks may be bogus.
2017-03-18 20:32:11 +00:00
stujones11 75a7181e0f Add callbacks, closes #46 2017-03-18 20:12:43 +00:00
stujones11 2b840fbe38 Add comment and remove empty lines 2017-03-18 18:04:10 +00:00
stujones11 701215c22f Depreciate global configs, closes #68 2017-03-18 17:23:50 +00:00
stujones11 e46ff3488b Remove kill/me commands 2017-03-17 21:57:13 +00:00
stujones11 f74a52df62 Code re-organisation
This should make it easier to merge features from the now
out-dated development branch.
2017-03-17 20:26:41 +00:00
stujones11 3c4500a9bf Only show protection levels of enabled features 2017-03-17 18:27:19 +00:00
stujones11 e69b59e2af Fix alignment of formspec page slots 2017-03-15 19:31:48 +00:00
stujones11 d43d96bb28 Fix typo in cactus helmet description, closes #91 2017-03-15 18:58:27 +00:00
stujones11 7a980a6717 Fix missing sfinv page background images, closes #90 2017-03-12 20:34:54 +00:00
stujones11 fc3fcea4b7 Bump version to 0.4.8 2017-03-12 19:14:32 +00:00
stujones11 b59464de88 Improve skin mod preview support 2017-03-12 18:23:49 +00:00
stujones11 80024fc154 Fix security violation in player_textures mod support 2017-03-12 17:01:04 +00:00
stujones11 d826b53877 Use u_skins preview image as base for armor preview 2017-03-11 21:34:26 +00:00
stujones11 01a3425ec8 Add preview generator and update preview textures 2017-03-11 20:02:55 +00:00
stujones11 616d9398f2 Minor formspec improvements 2017-03-11 19:31:37 +00:00
stujones11 6661ec0b40 Add support for player monoids, resolves #85 2017-03-10 20:33:45 +00:00
stujones11 ca1cf6bfeb Fix inconsistency with cactus boots, closes #89 2017-03-10 18:09:28 +00:00
stujones11 ca79d39688 Armor stand: Improve TNT effects, closes #55 2017-03-08 19:36:30 +00:00
rubenwardy 8b8a554ff7 Add support for sfinv 2017-03-08 17:47:38 +00:00
tenplus1 3df7802439 added new torch fire nodes
added new torch nodes to the fire nodes list.
2017-03-08 17:44:49 +00:00
stujones11 19e297a2e8 Update inventory_plus formspec style 2017-03-03 17:59:31 +00:00
stujones11 190614d47b Fix potential bug with new bone location method 2017-02-24 23:00:03 +00:00
stujones11 37b10d1cee Remove redundant code 2017-02-24 22:45:23 +00:00
stujones11 4b45f85687 Improve bones locating and fallback, fixes #84 2017-02-24 22:32:27 +00:00
Alexander Weber a5b650285b beter smart_inventory integration 2017-02-21 19:07:17 +00:00
stujones11 26212fb3e4 Add new armor textures by @daviddoesminetest 2017-02-19 19:33:10 +00:00
stujones11 4829445d12 Update style of default armor formspec 2017-02-15 19:37:35 +00:00
Alexander Weber 4d3b219e7d add smart_inventory support 2017-02-15 19:06:06 +00:00
stujones11 b88f946929 Bump version to 0.4.7 2017-01-11 19:36:51 +00:00
stujones11 4b70580ce4 Update licensing information 2017-01-08 18:54:24 +00:00
stujones11 65b6d58580 Prevent armor damage when using /killme command 2016-12-07 19:24:00 +00:00
stujones11 98786fd8f7 Add killme command to replace old kill command 2016-11-27 17:18:08 +00:00
stujones11 9105e8403e Merge pull request #62 from paly2/kill_chatcommand_privs
Add "ban" privilege for kill chatcommand
2016-11-27 16:50:03 +00:00
stujones11 6b2e3adc00 Bump version to 0.4.6 2016-11-27 16:22:29 +00:00
stujones11 c9001f9e53 Rebase armor model, armature and UV fixes 2016-11-27 16:11:51 +00:00
James Stevenson 0157ebd683 Try harder to add armor to bones
Previously, if bones were on a slab, or some non-buildable_to but walkable
node, then the armor would fail to find the bones node (which is Y+1,
typically) and the armor would disappear.  This is an attempt to address that.
2016-07-22 10:46:05 -04:00
Pierre-Adrien Langrognet c39f838893 Fix a mistake in the kill chatcommand
Use "param" instead of "name" in "func"
2016-06-17 18:29:43 +02:00
paly2 862deff373 Add "ban" privilege for kill chatcommand 2016-06-17 16:08:50 +02:00
Thomas--S 54ec4b3cef Fix typo 2016-05-11 19:25:59 +02:00
stujones11 d322a0f110 Modify helmet textures, fixes #49 2016-05-01 20:25:46 +01:00
number Zero 9cc2f3db02 Radiation protection support added 2016-05-01 17:09:07 +01:00
stujones11 1aa2b769d7 Rebase armor player model, fixes #54 2016-04-24 21:13:45 +01:00
stujones11 ae33659168 Make cactus leggings inventory image more consistent 2016-04-08 21:35:56 +01:00
stujones11 7408ebcd81 Add support for mod managers 2016-03-25 19:52:00 +00:00
tenplus1 5a112547e6 Added insta-kill ability for tools/commands
Some armor was too powerful that killing yourself to respawn wouldn't work or instant kill tools for admin didn't have effect, so I've added a check so that if the player is dealt with more than -100 damage points it instantly kills them but doesn't damage armor.  Also added /kill command.
2016-02-08 19:05:32 +00:00
proller f17a104ab1 Dont rewrite inventory in creative mode
happens on first press I if no unified inventory installed
2016-02-07 18:46:37 +03:00
stujones11 f83e7e9984 Merge pull request #43 from tenplus1/patch-6
admin helmet lets you breathe underwater
2016-01-28 01:35:46 +08:00
tenplus1 241aa663f1 admin helmet lets you breathe underwater
added armor_water=1 group to admin helmet so players can breathe underwater.
2016-01-25 14:48:23 +00:00
tenplus1 921e1ace24 Add ability to breath underwater
Added functionality for armor to have armor_water=1 in groups so that player can breathe underwater.
2016-01-25 14:47:05 +00:00
stujones11 0ec2dbfb36 Update default fire protection nodes, closes #41 2015-12-19 19:25:43 +00:00
stujones11 7fc991765c Utilize player_on_hpchange callback 2015-12-09 21:03:45 +00:00
stujones11 991d2955e0 Simplify previous commit 2015-12-04 20:37:24 +00:00
stujones11 64ec3dcf93 Allow armor textures to be specified by the tool definition 2015-12-04 18:42:42 +00:00
stujones11 e1caf0ab0c Bump version to 0.4.5 2015-11-15 22:56:53 +00:00
stujones11 a44d1a2530 Add 'listring' support for inventory mods, closes #38 2015-11-15 21:50:27 +00:00
stujones11 16bc6232ca Add support for unified inventory 'ui_full' privilege 2015-11-15 19:18:21 +00:00
Craig Davison 67867e78ec Prevent admin armor from being dropped 2015-10-29 14:19:59 +00:00
stujones11 64f6be4d61 Bugfix: invalid capture index with non-english player names, resolves #39 2015-10-17 19:20:28 +01:00
stujones11 741faf3520 Fix support for crafting modpack 2015-09-09 19:07:31 +01:00
stujones11 1c56ee4bd6 Merge pull request #31 from tenplus1/patch-2
dtime glitches
2015-08-08 18:05:02 +01:00
stujones11 ae7ad422a5 Belated version string update (oopsie) 2015-07-15 20:52:56 +01:00
stujones11 bad1452e87 Register fire-node overrides at start-up 2015-07-15 19:00:16 +01:00
tenplus1 7cefc1a7ba dtime glitches
sometimes dtime isn't registering when armor.update_armor is called and so it never checks for fire resistance on armor meaning cactus is fireproof if ethereal mod is found...  we cant have that :)  replaced dtime with ARMOR_UPDATE_TIME and it works fine :)
2015-07-15 16:57:17 +01:00
stujones11 8f2badeec3 Add support for unified inventory 'lite' mode 2015-07-01 19:21:14 +01:00
stujones11 734e01e847 Only check for fire damage if valid delta time 2015-05-15 18:39:32 +01:00
stujones11 4eabd8512a Only round the drop position for bones (deja vu) 2015-05-06 20:59:22 +01:00
stujones11 14a0eb8cca Fix armor damage when using fire protection (my bad) 2015-05-06 20:06:07 +01:00
tenplus1 306f193db6 Stop dropped armor disappearing into ground
This stops dropped armor disappearing into ground at times...
2015-05-06 18:41:40 +01:00
stujones11 0fc71201b4 Add crystal armor and fire protection by TenPlus1 2015-05-04 17:08:40 +01:00
stujones11 d107708bec Fix Lua escape sequence, resolves #28 2015-05-01 18:06:43 +01:00
leroux raphael ebe159ac2c add support for inventory_enhanced 2015-04-25 18:45:59 +02:00
leroux raphael 91602ed6f2 Add support for wardrobe mod 2015-04-25 14:28:45 +02:00
stujones11 2b0ce6f63e Check node is not nil before indexing 2015-04-17 19:41:15 +01:00
Pilcrow182 d2f32beebb drop armor if no bones node is found 2015-04-16 21:57:07 -05:00
Pilcrow182 dec92749f9 Put aromr drops into a single loop, fix #22 2015-04-14 18:22:22 -05:00
stujones11 9da2395586 More error logging improvements, fix #21 2015-04-02 20:59:45 +01:00
stujones11 6942aa37d2 Drop excess armor items when bones are full 2015-03-21 17:48:09 +00:00
ExeterDad 905fc9fcb0 smaller b3d export 2015-03-18 20:50:54 -04:00
stujones11 b8e5d0adde Fix inverted normal on inner right arm 2015-03-18 18:37:04 +00:00
stujones11 58337c0404 Better skin mod support and more preview bug fixes 2015-03-08 18:29:17 +00:00
stujones11 87af6e0c68 Fix missing preview image when using simple_skins mod 2015-03-08 15:21:37 +00:00
Calinou 6e0fbc8bb2 Optimize textures using OptiPNG 2015-02-22 10:13:06 +01:00
ExeterDad 9c2b9c9b5a Character model improvements. Extruded shields - closes #18 2015-02-21 16:34:49 +00:00
stujones11 b8be801b94 Bump version to 0.4.3 2015-02-20 21:27:47 +00:00
stujones11 679888398f Craft wooden armor from any type of wood [group:wood] 2015-02-20 15:09:30 +00:00
stujones11 c03cefbc87 Don't show admin armor in the creative inventory 2015-02-19 22:11:03 +00:00
stujones11 195d138da5 Use b3d armor model export by ExeterDad 2015-02-19 21:08:24 +00:00