Compare commits
	
		
			5 Commits
		
	
	
		
			d3e5dadbba
			...
			9e6bb3e704
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 9e6bb3e704 | |||
|  | e581a7102a | ||
|  | ab4bb34170 | ||
| f19d57f6fc | |||
|  | e85417b180 | 
							
								
								
									
										13
									
								
								.github/workflows/luacheck.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						| @@ -1,13 +1,10 @@ | |||||||
| name: luacheck | name: luacheck | ||||||
| on: [push, pull_request] | on: [push, pull_request] | ||||||
| jobs: | jobs: | ||||||
|   build: |   luacheck: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
|     - uses: actions/checkout@master |       - name: Checkout | ||||||
|     - name: apt |         uses: actions/checkout@main | ||||||
|       run: sudo apt-get install -y luarocks |       - name: Luacheck | ||||||
|     - name: luacheck install |         uses: lunarmodules/luacheck@master | ||||||
|       run: luarocks install --local luacheck |  | ||||||
|     - name: luacheck run |  | ||||||
|       run: $HOME/.luarocks/bin/luacheck ./ |  | ||||||
|   | |||||||
| @@ -1,9 +1,14 @@ | |||||||
| # Technic Armor [technic_armor] | # Technic Armor [technic_armor] | ||||||
|  |  | ||||||
| [](https://github.com/mt-mods/technic_armor/actions) | [](https://github.com/mt-mods/technic_armor/actions) | ||||||
|  | [](https://content.minetest.net/packages/mt-mods/technic_armor/) | ||||||
|  |  | ||||||
| Adds armor made from lead, brass, cast iron, carbon steel, stainless steel, tin and silver. | Adds armor made from lead, brass, cast iron, carbon steel, stainless steel, tin and silver. | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| Textures by @poet-nohit and @numberZero | ## License | ||||||
|  |  | ||||||
|  | Code: LGPL v2.1 | ||||||
|  |  | ||||||
|  | Textures: WTFPL (by poet-nohit and numberZero) | ||||||
|   | |||||||
							
								
								
									
										11
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						| @@ -46,14 +46,7 @@ if minetest.get_modpath("technic_worldgen") then | |||||||
| 	} | 	} | ||||||
| end | end | ||||||
|  |  | ||||||
| local tin_ingot |  | ||||||
|  |  | ||||||
| if minetest.registered_items["default:tin_ingot"] then |  | ||||||
| 	tin_ingot = "default:tin_ingot" |  | ||||||
| end |  | ||||||
|  |  | ||||||
| if minetest.get_modpath("moreores") then | if minetest.get_modpath("moreores") then | ||||||
| 	tin_ingot = "moreores:tin_ingot" |  | ||||||
| 	materials.silver = { | 	materials.silver = { | ||||||
| 		name = S("Silver"), | 		name = S("Silver"), | ||||||
| 		craft_item = "moreores:silver_ingot", | 		craft_item = "moreores:silver_ingot", | ||||||
| @@ -64,10 +57,10 @@ if minetest.get_modpath("moreores") then | |||||||
| 	} | 	} | ||||||
| end | end | ||||||
|  |  | ||||||
| if tin_ingot then | if minetest.get_modpath("default") then | ||||||
| 	materials.tin = { | 	materials.tin = { | ||||||
| 		name = S("Tin"), | 		name = S("Tin"), | ||||||
| 		craft_item = tin_ingot, | 		craft_item = "default:tin_ingot", | ||||||
| 		armor = 1.6, | 		armor = 1.6, | ||||||
| 		heal = 0, | 		heal = 0, | ||||||
| 		use = 750, | 		use = 750, | ||||||
|   | |||||||
| Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 304 B | 
| Before Width: | Height: | Size: 155 B After Width: | Height: | Size: 153 B | 
| Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 304 B | 
| Before Width: | Height: | Size: 284 B After Width: | Height: | Size: 278 B | 
| Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 437 B | 
| Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 297 B | 
| Before Width: | Height: | Size: 502 B After Width: | Height: | Size: 490 B | 
| Before Width: | Height: | Size: 480 B After Width: | Height: | Size: 464 B | 
| Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 281 B | 
| Before Width: | Height: | Size: 502 B After Width: | Height: | Size: 490 B | 
| Before Width: | Height: | Size: 554 B After Width: | Height: | Size: 545 B | 
| Before Width: | Height: | Size: 320 B After Width: | Height: | Size: 316 B | 
| Before Width: | Height: | Size: 492 B After Width: | Height: | Size: 479 B | 
| Before Width: | Height: | Size: 274 B After Width: | Height: | Size: 273 B | 
| Before Width: | Height: | Size: 547 B After Width: | Height: | Size: 539 B | 
| Before Width: | Height: | Size: 490 B After Width: | Height: | Size: 477 B | 
| Before Width: | Height: | Size: 332 B After Width: | Height: | Size: 327 B | 
| Before Width: | Height: | Size: 470 B After Width: | Height: | Size: 455 B | 
| Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 282 B | 
| Before Width: | Height: | Size: 470 B After Width: | Height: | Size: 455 B | 
| Before Width: | Height: | Size: 339 B After Width: | Height: | Size: 337 B | 
| Before Width: | Height: | Size: 309 B After Width: | Height: | Size: 299 B | 
| Before Width: | Height: | Size: 149 B After Width: | Height: | Size: 148 B | 
| Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 339 B | 
| Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 430 B | 
| Before Width: | Height: | Size: 208 B After Width: | Height: | Size: 207 B | 
| Before Width: | Height: | Size: 181 B After Width: | Height: | Size: 176 B | 
| Before Width: | Height: | Size: 473 B After Width: | Height: | Size: 471 B | 
| Before Width: | Height: | Size: 518 B After Width: | Height: | Size: 516 B | 
| Before Width: | Height: | Size: 489 B After Width: | Height: | Size: 487 B | 
| Before Width: | Height: | Size: 637 B After Width: | Height: | Size: 633 B | 
| Before Width: | Height: | Size: 525 B After Width: | Height: | Size: 521 B | 
| Before Width: | Height: | Size: 536 B After Width: | Height: | Size: 535 B | 
| Before Width: | Height: | Size: 468 B After Width: | Height: | Size: 466 B | 
| Before Width: | Height: | Size: 323 B After Width: | Height: | Size: 316 B | 
| Before Width: | Height: | Size: 164 B After Width: | Height: | Size: 163 B | 
| Before Width: | Height: | Size: 323 B After Width: | Height: | Size: 316 B | 
| Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 216 B | 
| Before Width: | Height: | Size: 299 B After Width: | Height: | Size: 290 B | 
| Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 252 B | 
| Before Width: | Height: | Size: 315 B After Width: | Height: | Size: 308 B | 
| Before Width: | Height: | Size: 487 B After Width: | Height: | Size: 482 B | 
| Before Width: | Height: | Size: 489 B After Width: | Height: | Size: 481 B | 
| Before Width: | Height: | Size: 532 B After Width: | Height: | Size: 526 B | 
| Before Width: | Height: | Size: 541 B After Width: | Height: | Size: 536 B | 
| Before Width: | Height: | Size: 501 B After Width: | Height: | Size: 496 B | 
| Before Width: | Height: | Size: 502 B After Width: | Height: | Size: 497 B | 
| Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 533 B | 
| Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 535 B | 
| Before Width: | Height: | Size: 547 B After Width: | Height: | Size: 546 B | 
| Before Width: | Height: | Size: 547 B After Width: | Height: | Size: 545 B | 
| Before Width: | Height: | Size: 480 B After Width: | Height: | Size: 476 B | 
| Before Width: | Height: | Size: 482 B After Width: | Height: | Size: 475 B |