Compare commits
	
		
			16 Commits
		
	
	
		
			player-api
			...
			3bc7ed06e2
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 3bc7ed06e2 | |||
| 2d280a5a1e | |||
| 9417629f51 | |||
| 8eaf8edb4c | |||
| bcdd82980b | |||
| 3ca25f7ec4 | |||
| 52f4c52271 | |||
| 2ebefb332f | |||
| bda0db7c04 | |||
| 2b535ee887 | |||
| afee335dc2 | |||
| 
						 | 
					5da2f3060a | ||
| 
						 | 
					1ff3bb0041 | ||
| 
						 | 
					41b8c3e343 | ||
| 
						 | 
					941bfc27f9 | ||
| 
						 | 
					f991b676f4 | 
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						@@ -4,7 +4,6 @@
 | 
			
		||||
*bak*
 | 
			
		||||
tags
 | 
			
		||||
*.vim
 | 
			
		||||
armor.conf
 | 
			
		||||
 | 
			
		||||
## Eclipse project files & directories
 | 
			
		||||
.project
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										37
									
								
								3d_armor/armor.conf
									
									
									
									
									
										Executable file
									
								
							
							
						
						@@ -0,0 +1,37 @@
 | 
			
		||||
-- Armor Configuration (defaults)
 | 
			
		||||
 | 
			
		||||
-- Increase this if you get initialization glitches when a player first joins.
 | 
			
		||||
ARMOR_INIT_DELAY = 3
 | 
			
		||||
 | 
			
		||||
-- Number of initialization attempts.
 | 
			
		||||
-- Use in conjunction with ARMOR_INIT_DELAY if initialization problems persist.
 | 
			
		||||
ARMOR_INIT_TIMES = 3
 | 
			
		||||
 | 
			
		||||
-- Increase this if armor is not getting into bones due to server lag.
 | 
			
		||||
ARMOR_BONES_DELAY = 3
 | 
			
		||||
 | 
			
		||||
-- How often player armor/wield items are updated.
 | 
			
		||||
ARMOR_UPDATE_TIME = 1
 | 
			
		||||
 | 
			
		||||
-- Drop armor when a player dies.
 | 
			
		||||
-- Uses bones mod if present, otherwise items are dropped around the player.
 | 
			
		||||
ARMOR_DROP = true
 | 
			
		||||
 | 
			
		||||
-- Pulverise armor when a player dies, overrides ARMOR_DROP.
 | 
			
		||||
ARMOR_DESTROY = false
 | 
			
		||||
 | 
			
		||||
-- You can use this to increase or decrease overall armor effectiveness,
 | 
			
		||||
-- eg: ARMOR_LEVEL_MULTIPLIER = 0.5 will reduce armor level by half.
 | 
			
		||||
ARMOR_LEVEL_MULTIPLIER = 1
 | 
			
		||||
 | 
			
		||||
-- You can use this to increase or decrease overall armor healing,
 | 
			
		||||
-- eg: ARMOR_HEAL_MULTIPLIER = 0 will disable healing altogether.
 | 
			
		||||
ARMOR_HEAL_MULTIPLIER = 1
 | 
			
		||||
 | 
			
		||||
-- You can also use this file to execute arbitary lua code
 | 
			
		||||
-- eg: Dumb the armor down if using Simple Mobs
 | 
			
		||||
--if minetest.get_modpath("mobs") then
 | 
			
		||||
--	ARMOR_LEVEL_MULTIPLIER = 1
 | 
			
		||||
--	ARMOR_HEAL_MULTIPLIER = 0
 | 
			
		||||
--end
 | 
			
		||||
 | 
			
		||||
@@ -502,3 +502,5 @@ if armor.config.fire_protect == true then
 | 
			
		||||
		return hp_change
 | 
			
		||||
	end, true)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
minetest.log("action", "[3d_armor] loaded.")
 | 
			
		||||
 
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 258 B After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 548 B  | 
| 
		 Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 937 B  | 
| 
		 Before Width: | Height: | Size: 241 B After Width: | Height: | Size: 602 B  | 
| 
		 Before Width: | Height: | Size: 252 B After Width: | Height: | Size: 903 B  | 
| 
		 Before Width: | Height: | Size: 239 B After Width: | Height: | Size: 821 B  | 
| 
		 Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 236 B  | 
| 
		 Before Width: | Height: | Size: 258 B After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 265 B After Width: | Height: | Size: 13 KiB  | 
| 
		 Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 872 B  | 
| 
		 Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 779 B  | 
| 
		 Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 854 B  | 
| 
		 Before Width: | Height: | Size: 272 B After Width: | Height: | Size: 530 B  | 
| 
		 Before Width: | Height: | Size: 233 B After Width: | Height: | Size: 11 KiB  | 
| 
		 Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 783 B  | 
| 
		 Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 233 B After Width: | Height: | Size: 501 B  | 
| 
		 Before Width: | Height: | Size: 409 B After Width: | Height: | Size: 3.8 KiB  | 
| 
		 Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 2.4 KiB  | 
| 
		 Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 4.9 KiB  | 
| 
		 Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 2.5 KiB  | 
| 
		 Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 3.3 KiB  | 
| 
		 Before Width: | Height: | Size: 286 B After Width: | Height: | Size: 2.9 KiB  | 
| 
		 Before Width: | Height: | Size: 404 B After Width: | Height: | Size: 613 B  | 
| 
		 Before Width: | Height: | Size: 289 B After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 429 B After Width: | Height: | Size: 13 KiB  | 
| 
		 Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 2.9 KiB  | 
| 
		 Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 6.6 KiB  | 
| 
		 Before Width: | Height: | Size: 281 B After Width: | Height: | Size: 2.9 KiB  | 
| 
		 Before Width: | Height: | Size: 416 B After Width: | Height: | Size: 2.0 KiB  | 
| 
		 Before Width: | Height: | Size: 286 B After Width: | Height: | Size: 1.4 KiB  | 
| 
		 Before Width: | Height: | Size: 385 B After Width: | Height: | Size: 11 KiB  | 
| 
		 Before Width: | Height: | Size: 274 B After Width: | Height: | Size: 2.7 KiB  | 
| 
		 Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 2.8 KiB  | 
| 
		 Before Width: | Height: | Size: 275 B After Width: | Height: | Size: 1.7 KiB  | 
| 
		 Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 3.2 KiB  | 
| 
		 Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 869 B  | 
| 
		 Before Width: | Height: | Size: 337 B After Width: | Height: | Size: 1.4 KiB  | 
| 
		 Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 796 B  | 
| 
		 Before Width: | Height: | Size: 325 B After Width: | Height: | Size: 3.5 KiB  | 
| 
		 Before Width: | Height: | Size: 203 B After Width: | Height: | Size: 1.1 KiB  | 
| 
		 Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 494 B  | 
| 
		 Before Width: | Height: | Size: 257 B After Width: | Height: | Size: 834 B  | 
| 
		 Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 13 KiB  | 
| 
		 Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 1.1 KiB  | 
| 
		 Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 251 B After Width: | Height: | Size: 586 B  | 
| 
		 Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 1.7 KiB  | 
| 
		 Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 732 B  | 
| 
		 Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 11 KiB  | 
| 
		 Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 1.0 KiB  | 
| 
		 Before Width: | Height: | Size: 327 B After Width: | Height: | Size: 932 B  | 
| 
		 Before Width: | Height: | Size: 237 B After Width: | Height: | Size: 471 B  | 
| 
		 Before Width: | Height: | Size: 216 B After Width: | Height: | Size: 2.2 KiB  | 
| 
		 Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 2.0 KiB  | 
| 
		 Before Width: | Height: | Size: 194 B After Width: | Height: | Size: 1.9 KiB  | 
| 
		 Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 129 B  | 
| 
		 Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 2.3 KiB  | 
| 
		 Before Width: | Height: | Size: 202 B After Width: | Height: | Size: 1.9 KiB  | 
| 
		 Before Width: | Height: | Size: 224 B After Width: | Height: | Size: 1.7 KiB  | 
| 
		 Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 2.0 KiB  | 
| 
		 Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 2.0 KiB  | 
| 
		 Before Width: | Height: | Size: 256 B After Width: | Height: | Size: 2.8 KiB  | 
| 
		 Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 2.9 KiB  | 
| 
		 Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 2.8 KiB  | 
| 
		 Before Width: | Height: | Size: 258 B After Width: | Height: | Size: 142 B  | 
| 
		 Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 2.8 KiB  | 
| 
		 Before Width: | Height: | Size: 256 B After Width: | Height: | Size: 2.8 KiB  | 
| 
		 Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 2.2 KiB  | 
| 
		 Before Width: | Height: | Size: 252 B After Width: | Height: | Size: 2.9 KiB  | 
| 
		 Before Width: | Height: | Size: 244 B After Width: | Height: | Size: 2.2 KiB  | 
| 
		 Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 2.4 KiB  | 
| 
		 Before Width: | Height: | Size: 180 B After Width: | Height: | Size: 2.4 KiB  | 
| 
		 Before Width: | Height: | Size: 183 B After Width: | Height: | Size: 2.4 KiB  | 
| 
		 Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 138 B  | 
| 
		 Before Width: | Height: | Size: 189 B After Width: | Height: | Size: 2.5 KiB  | 
| 
		 Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 1.8 KiB  | 
| 
		 Before Width: | Height: | Size: 180 B After Width: | Height: | Size: 2.1 KiB  | 
| 
		 Before Width: | Height: | Size: 194 B After Width: | Height: | Size: 2.4 KiB  | 
| 
		 Before Width: | Height: | Size: 151 B After Width: | Height: | Size: 1.8 KiB  | 
| 
		 Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 2.3 KiB  | 
| 
		 Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 2.3 KiB  | 
| 
		 Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 2.2 KiB  | 
| 
		 Before Width: | Height: | Size: 212 B After Width: | Height: | Size: 154 B  | 
| 
		 Before Width: | Height: | Size: 213 B After Width: | Height: | Size: 2.3 KiB  | 
| 
		 Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 2.4 KiB  | 
| 
		 Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 1.5 KiB  | 
| 
		 Before Width: | Height: | Size: 233 B After Width: | Height: | Size: 2.3 KiB  | 
| 
		 Before Width: | Height: | Size: 211 B After Width: | Height: | Size: 1.8 KiB  | 
| 
		 Before Width: | Height: | Size: 288 B After Width: | Height: | Size: 2.4 KiB  | 
| 
		 Before Width: | Height: | Size: 298 B After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 278 B After Width: | Height: | Size: 2.6 KiB  | 
| 
		 Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 1.4 KiB  | 
| 
		 Before Width: | Height: | Size: 251 B After Width: | Height: | Size: 1.4 KiB  | 
| 
		 Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 1.4 KiB  | 
| 
		 Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 351 B  |