From 793acd267f4a5801e2aa9e9dca7cf51c5a595a02 Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Wed, 12 Jul 2017 05:13:27 -0500 Subject: Changing pickup lifetime and combining semantics, making these adjustable in the lua api. (#3843) --- Server/Plugins/APIDump/APIDesc.lua | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'Server/Plugins/APIDump/APIDesc.lua') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index ce0390947..65ae69144 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -9260,6 +9260,16 @@ a_Player:OpenWindow(Window); ]], Functions = { + CanCombine = + { + Returns = + { + { + Type = "boolean" + } + }, + Notes = "Returns whether this pickup is allowed to combine with other similar pickups.", + }, CollectedBy = { Params = @@ -9298,6 +9308,16 @@ a_Player:OpenWindow(Window); }, Notes = "Returns the item represented by this pickup", }, + GetLifetime = + { + Returns = + { + { + Type = "number", + }, + }, + Notes = "Returns the total length of this pickup's lifespan, in ticks.", + }, IsCollected = { Returns = @@ -9329,6 +9349,28 @@ a_Player:OpenWindow(Window); }, Notes = "Sets the pickup's age, in ticks.", }, + SetCanCombine = + { + Params = + { + { + Name = "CanCombine", + Type = "boolean", + }, + }, + Notes = "Sets whether this pickup is allowed to combine with other similar pickups.", + }, + SetLifetime = + { + Params = + { + { + Name = "LifeTimeInTicks", + Type = "number", + }, + }, + Notes = "Sets the total lifespan of this pickup before it despawns, in ticks. Does not reset the age of the pickup, use SetAge(0). If new lifetime is less than the current age, pickup will despawn.", + }, }, Inherits = "cEntity", }, -- cgit v1.2.3