1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2024-11-16 07:20:37 +01:00
Commit Graph

306 Commits

Author SHA1 Message Date
Niklp
20917da061
Fix armor radiation values were not not summed up (#139) 2024-03-22 22:35:43 +01:00
Niklp
7bd77a7b80
Call custom on_punched functions w/ hitter = nil too (#141) 2024-03-19 12:54:42 +01:00
Niklp
25369e5165
Don't assume hitter ~= nil in on_punchplayer callback (#138)
* Don't assume `hitter ~= nil` in on_punchplayer callback

* Use early return
2024-03-17 09:11:03 +01:00
BuckarooBanzay
f430395b64 resolve player object in async function again (different globalstep)
fixes #132
2024-01-15 10:15:49 +01:00
David Leal
467709c935
Use player_api functions instead of default (#129) 2023-12-26 18:34:43 +01:00
Jaidyn Ann
e0b6112320
Tweak Esperanto translation (#128) 2023-12-19 07:13:04 +01:00
Olivier Dragon
9a687fbb51
Remove individual mod LICENSE.txt (#122)
and add full license texts for LGPL2.1 and CC-BY-SA 3.0
2023-10-29 19:13:53 +01:00
Buckaroo Banzai
3660e50312
init-cleanup (#115)
Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2023-10-26 10:39:55 +02:00
Dirkfried
aef125a0ca
fix small typo (#111) 2023-08-20 19:36:32 +02:00
Wuzzy
7d251784e7
German translation update (#110) 2023-08-13 14:57:32 +02:00
Buckaroo Banzai
6eb492b09c
add nil check in armor.damage (#109) 2023-08-04 16:35:02 +02:00
Kyrah Abattoir
1d8509e75b
Implements item groups soulbound and cursed (#105)
* Implements item groups soulbound and cursed:
Soulbound armors respawn with their owner.
Cursed armors cannot be unequipped by the player.
(disabled in creative mode)

* Prevents a cursed armor from getting unequipped by right clicking another piece of armor.
2023-05-31 14:59:20 +02:00
flux
053c30b8b1 don't trigger armor:punch when max_hp decreases 2023-04-20 07:36:24 +02:00
tenplus1
dc7fbce09a
Change Fire Protection Function (#100)
* Tweak Fire Protect

This change tweaks the fire protection function so that it no longer needs to override nodes and hence rely on additional dependencies like ethereal mod.

* Remove ethereal and fire dependencies

Remove fire and ethereal dependencies as they are no longer needed since fire protection doesn't override items inside those mods.

* Re-add Torch Damage

This re-adds torch damage of 1 per second if fire protection is enabled.

* Remove nether dependency

Nether dependency isn't required as well.
2023-02-05 17:44:17 +01:00
fluxionary
72970b3da1
add animations for use w/ the emote mod (#98) 2023-01-14 21:44:41 +01:00
ROllerozxa
400745dd0c
Swedish translation (+refresh translations and remove outdated meta) (#97)
* Refresh translations
* Add Swedish translations
* Remove outdated depends.txt and description.txt
2022-12-25 18:23:49 +01:00
fluxionary
e75c0bedcc
remove pointless dependency on bakedclay (#90) 2022-12-10 19:45:21 +01:00
OgelGames
7f20e5dcb7
add fake player check (#86) 2022-11-20 16:44:50 +01:00
jolesh
41301a4663 Added Esperanto translation
used the update translation script to determine which strings are still used
2022-11-04 07:44:47 +01:00
EmptyStar
eebee34fa0
Preserve fall_damage_add_percent when setting player armor (#81) 2022-09-07 22:01:18 +02:00
Crystalwarrior
9444afd722
Refactor armors to be mods rather than hardcoded into API (#78)
* Begin work on "armors as modpack" refactor letting anyone to enable/disable any armors they want as mods rather than obscure settings

* Fix some steel armor mishaps, remove pointless dependency on "default"

* Move admin armor into mod

* Make wood armor into a mod

* More consistent steel description text etc.

* remove wood references from 3d_armor api locale

* remove admin armor reference from 3d_armor locale template.txt

* Remove steel textures from api

* Bronze armor as mod

* Fix admin, wood armor missing local S translator var
Fix wood locale missing template.txt

* Fix bronze missing locale

* Cactus as mod

* Crystal into mod

* Diamond into mod

* Mithril and Gold as mods

* Register armor fix

* Nether as mod

* Clean-up, add optional depends for mod armors, remove armor.lua from 3d_armor

* Fix badly named mod.conf for admin, gold, nether armors
Fix attempt to register crafting recipe even though the armor is disabled via setting

* Fix steel and wood having bad globals for crafting section, turned them to locals

* Fix brazilian translation getting deleted
Fix cactus armor locales being incorrectly named
2022-09-06 21:06:27 +02:00
tenplus1
e1a262ba20
add feather falling (#73)
* add feather falling

add feather falling

* add feather falling to init.lua

add feather falling routine to globalstep

* add feather falling to readme

add feather falling to readme
2022-04-02 17:16:23 +02:00
BuckarooBanzay
ac445a6cd0 use player_api to register player model 2022-03-25 23:23:25 +01:00
Dirkfried
a9b8bc4ddd
Enhance mithril armor (#70)
* Enhance mithril armor

Mithril armor should be (at least) tougher than diamond armor. Mithril is found rarer and deeper than diamond and mithril tools are already better than diamond tools.

* Enhance mithril shield

Mithril armor should be (at least) tougher than diamond armor. Mithril is found rarer and deeper than diamond and mithril tools are already better than diamond tools.

* Correct armor_use

Now this enhance the durability by a factor 3 (instead of a factor 2) compared to diamond. Which can be justified by the ore generation update in moreores (deeper and rarer (but less scattered)).

* Correct armor_use

Now this enhance the durability by a factor 3 (instead of a factor 2) compared to diamond. Which can be justified by the ore generation update in moreores (deeper and rarer (but less scattered)).

* correct typo
2022-02-05 13:33:41 +01:00
tenplus1
b6651fd396
add fire protection to nether armor (#67)
* add fire protection to nether armor
* add fire protection to nether shield
2021-11-13 11:00:49 +01:00
Buckaroo Banzai
16e2648416
fix nether package typo
reported in https://github.com/minetest-mods/3d_armor/issues/66
2021-11-11 09:42:10 +01:00
lortas
44778d7861
add nether armor and nether shield (#65)
* add texture files for nether based 3d_armor
* add texture files for nether based shield
* perpare for nether armor
* add nether armor
* add translation for nether armor
* add translation for nether armor
* add nether shield
* add nether shield translation
* add nether armor texture preview info
* add nether shield texture preview info
* add nether to settingtypes.txt
* add german translation for armor
* add german translation for shields
* Nether armor stats modified.
* Modify Nether Shield Stats

* Update inline documentation
2021-11-10 10:15:55 +01:00
Jordan Irwin
da78601a77
Some Fixes for HTML Docs Generated by LDoc (#60)
* LDoc: set min-height for "content" element
* LDoc: move generation script to .ldoc directory
* LDoc: add some output messages to gendoc.sh script
* LDoc: copy inventory image textures to reference dir instead of linking to remote files.
* LDoc: hack to compensate for "shields:" prefix being trimmed from item names
* Fix helmet_diamond & chestplate_crystal names in docstrings
2021-07-31 14:03:20 +02:00
Jordan Irwin
c790b20169
Add Support for Generating HTML Documentation with LDoc (#58)
* Add Python scripts to generate temp files that can be parsed by LDoc
* Add config & script for generating HTML docs with LDoc...
* Add Lua docstrings for API & items
* Add workflow for building API reference docs on gh-pages branch
* Add LDoc's default stylesheet
* LDoc: make navigation panel fixed
2021-07-30 16:12:29 +02:00
OgelGames
a897f7e72f
fix callbacks not being called by armor.equip() and armor.unequip() (#59) 2021-07-30 16:02:59 +02:00
Jordan Irwin
ac7615212b
Reduce skin_mod visibility (#53) 2021-07-13 20:50:22 +02:00
Jordan Irwin
1dec1f2153
Add armor.set_skin_mod() to set the skin mod name manually (#51)
Useful for skin mod forks that do not use the same name.
2021-06-23 17:28:29 +02:00
tenplus1
0dffd62fb0
add nether lava to fire protection (#52)
adds nether lava and lava crust to fire protection list.
2021-06-14 11:56:05 +02:00
Jordan Irwin
a0cf12bbd0
Add setting to disable armor visuals on player model (#48)
* Add setting to disable armor visuals on player model
2021-05-27 09:11:04 +02:00
SmallJoker
e75af55f7e Fix translation nonsense in minetest.log
.. and document the armor warning when used with skinsdb
2021-03-24 19:21:39 +01:00
Vanessa Dannenberg
583dfe7b21
Update to work with Unified Inventory since formspec v4 update (#45)
Requires UI git tag "version-2" or commit a7556c50, and Minetest v5.4.0
or later
2021-03-10 09:21:26 +01:00
tenplus1
42f7dac4d0
Update fire and water protection (#42)
Update fire protection to use register_on_player_hpchange instead of overriding node damage, move water protection into different globalstep.
2021-02-07 09:47:23 +01:00
Sirrobzeroone
e7abacc94e
Add armor set and armor set bonus setting (#41)
- Add settingtypes of:
  -  armor_set_elements
  - armor_set_multiplier
- Add check to armor.registration_armor for "_materialname", print msg to debug if not found
- Complete change to how an armor set is calculated
- Set elements linked to settingtypes no longer hard linked to num armor.elements
- Set multiplier linked to settingtypes no longer hard coded
- Readme.MD updated:
  - Addition of the 2 new settingtypes
  - Addition of "Armor Material" topic
2021-01-11 15:34:28 +01:00
NathanielFreeman
a3cba570c4 locale es fix 2020-12-27 17:17:10 +01:00
Sirrobzeroone
3ddcbae968 Fix for #34 - Divide Armor Wear by # Pieces
See Details contained in #34

Note1: I split out the fix for Issue 13 and it had been applied
Note2: I will also do a seperate pull request for Issue 30

From what I udnerstand smaller specific pull requests allow for reversion of specific additions and features much more easily. Please do correct me if I have the wrong end of the stick on this.
2020-12-26 20:25:55 +01:00
BuckarooBanzay
724a3df50f call "set_player_armor" on respawn 2020-12-23 15:40:44 +01:00
Sirrobzeroone
33e9ac8e23 Minor improvement to fix #13
Picked up while testing  #34 and #30 that this needed to be adjusted from hitter name to hitter is player.

Hitter name was resolving to true even when mob was attacking...nil being counted as a value.

I should have picked this up before and not sure how I missed this.
2020-12-23 15:31:51 +01:00
Sirrobzeroone
06aaaf4bca whitespace removal 2020-12-20 21:26:33 +01:00
Sirrobzeroone
d515480370 fix for #13
Tested PVP inside and outside protected - passed as expected

Tested PvsM inside and outside protected - passed as expected
2020-12-20 21:26:33 +01:00
hlqkj
6242cebb20 Added moreores to optional dependencies 2020-12-17 09:06:00 +01:00
Sirrobzeroone
291f0eb23a
Torch Damage Switchable (#29)
Turn torch fire damage off if fire damage/protection enabled
Minor fixes to README.MD after further testing.
2020-12-13 13:07:39 +01:00
Sirrobzeroone
3b97763fdc temporary workaround for #24 2020-12-11 10:23:05 +01:00
Sirrobzeroone
713b0c81d4
Documentation and Screenshot Update (#26)
* New screenshot
* Examples Added
* formatting
* Delete README.txt
* formatting
* Update README.md
2020-12-03 08:38:41 +01:00
Maksim
5958b312ac
Fix detached inventory vulnerability (#23) 2020-11-03 22:22:14 +01:00
Thomas--S
7436fcdffe
Improve API for third party mods (#21)
* Add `armor:update_skin(player_name)` function (useful for skin mods)
* Add option to prevent physics override (useful for Techage Jetpack mod)
* Add documentation
2020-10-12 07:47:57 +02:00