forked from Mirrors/openclonk
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
parent
2032e0274b
commit
ad2bbbf5fd
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue