From 73689024f0b480afb84eeb898b3c429237359cab Mon Sep 17 00:00:00 2001 From: Muhammad Kaisar Arkhan Date: Tue, 25 Sep 2018 03:32:47 +0700 Subject: Add BurnsInDaylight to Lua API and Monsters.ini (#4295) * Monster.h: Export SetBurnsInDaylight This commit also adds BurnsInDaylight to check if the Monster burns in daylight or not. Closes https://github.com/cuberite/cuberite/issues/4294 * MonsterConfig.cpp: Add BurnsInDaylight Closes https://github.com/cuberite/cuberite/issues/4294 --- Server/Plugins/APIDump/APIDesc.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'Server/Plugins/APIDump') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index b6a4ec81e..193a58285 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -8771,6 +8771,16 @@ a_Player:OpenWindow(Window); ]], Functions = { + BurnsInDaylight = + { + Returns = + { + { + Type = "boolean", + }, + }, + Notes = "Returns whether the mob burns in daylight.", + }, CanBeLeashed = { Returns = @@ -8990,6 +9000,17 @@ a_Player:OpenWindow(Window); }, Notes = "Sets the age of the monster", }, + SetBurnsInDaylight = + { + Params = + { + { + Name = "BurnsInDaylight", + Type = "boolean", + }, + }, + Notes = "Sets whether the mob burns in daylight. Only evaluated at next burn-decision tick", + }, SetCanBeLeashed = { Params = -- cgit v1.2.3