ForceConstruct() added to ConstructionSite for better debugging.

Will construct the construction without the needed material. I often needed to test stuff with construction sites and always had to script-create all the material which is tedious.
qteditor
Clonkonaut 2016-08-05 18:19:05 +02:00
parent 2032e0274b
commit ad2bbbf5fd
1 changed files with 10 additions and 0 deletions

View File

@ -19,6 +19,16 @@ public func RefuseTransfer(object toMove) { return true; } // TODO: this is not
// disallow site cancellation. Useful e.g. for sites that are pre-placed for a game goal
public func MakeUncancellable() { no_cancel = true; return true; }
/*-- Testing / Development --*/
// Builds the construction even if the required materials isn't there.
// Use for debugging purposes (or maybe cool scenario effects)
public func ForceConstruct()
{
full_material = true;
StartConstructing();
}
/*-- Interaction --*/
public func HasInteractionMenu() { return true; }