openclonk/planet/Objects.ocd/Rules.ocd/BuyAtFlagpole.ocd/Script.c

22 lines
539 B
C

/*-- Buy at flagpole --*/
public func Construction(...)
{
// This rule enables wealth display because it's annoying to not
// know your wealth in multiplayer when many people buy/sell at
// the flagpole)
// Doesn't remove the display on destruction because there's no
// refcounting for this command.
GUI_Controller->ShowWealth();
return _inherited(...);
}
protected func Activate(int iByPlayer)
{
MessageWindow(GetProperty("Description"), iByPlayer);
return true;
}
local Name = "$Name$";
local Description = "$Description$";