mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-10-31 15:35:21 +01:00 
			
		
		
		
	Add a Lua call to do damages / heals
This commit is contained in:
		| @@ -2336,6 +2336,7 @@ This is basically a reference to a C++ `ServerActiveObject` | ||||
| * `right_click(clicker)`; `clicker` is another `ObjectRef` | ||||
| * `get_hp()`: returns number of hitpoints (2 * number of hearts) | ||||
| * `set_hp(hp)`: set number of hitpoints (2 * number of hearts) | ||||
| * `apply_damage(damage)`: set amount of damage to object. If damage < 0, heal the target | ||||
| * `get_inventory()`: returns an `InvRef` | ||||
| * `get_wield_list()`: returns the name of the inventory list the wielded item is in | ||||
| * `get_wield_index()`: returns the index of the wielded item | ||||
|   | ||||
		Reference in New Issue
	
	Block a user