change concrete production time to enable continuous pumping

ipv6
Maikel de Vries 2016-12-24 15:30:20 +01:00
parent b9aaa2fda4
commit 0d0a61d4b0
12 changed files with 16 additions and 12 deletions

View File

@ -23,6 +23,8 @@ public func Disperse(int angle, int strength)
public func IsFoundryProduct() { return true; }
public func GetProductionTime() { return 120; }
public func Construction(object creator)
{
var res = _inherited(creator, ...);
@ -33,8 +35,9 @@ public func Construction(object creator)
return res;
}
/*-- Properties --*/
local Name = "$Name$";
local Description = "$Description$";
local Components = {Rock = 2, Water = 100};
local Components = {Rock = 1, Water = 100};

View File

@ -25,7 +25,7 @@ public func IsProduct(id product_id)
return product_id->~IsArmoryProduct();
}
private func ProductionTime(id toProduce) { return 100; }
private func ProductionTime(id product) { return _inherited(product, ...) ?? 100; }
public func PowerNeed() { return 60; }
public func OnProductionStart(id product)

View File

@ -24,7 +24,7 @@ public func IsProduct(id product_id)
return product_id->~IsChemicalProduct();
}
private func ProductionTime(id toProduce) { return 100; }
private func ProductionTime(id product) { return _inherited(product, ...) ?? 100; }
public func PowerNeed() { return 40; }
public func OnProductionStart(id product)

View File

@ -36,7 +36,8 @@ private func IsProduct(id product_id)
{
return product_id->~IsFoundryProduct();
}
private func ProductionTime(id toProduce) { return 290; }
private func ProductionTime(id product) { return _inherited(product, ...) ?? 290; }
public func OnProductionStart(id product)
{

View File

@ -24,7 +24,7 @@ public func IsProduct(id product_id)
return product_id->~IsInventorProduct();
}
private func ProductionTime(id toProduce) { return 100; }
private func ProductionTime(id product) { return _inherited(product, ...) ?? 100; }
public func PowerNeed() { return 80; }
public func OnProductionStart(id product)

View File

@ -24,7 +24,7 @@ func IsProduct(id product_id)
return product_id->~IsKitchenProduct();
}
private func ProductionTime(id toProduce) { return 500; }
private func ProductionTime(id product) { return _inherited(product, ...) ?? 500; }
public func PowerNeed() { return 0; }
public func OnProductionStart(id product)

View File

@ -31,7 +31,7 @@ public func IsProduct(id product_id)
return product_id->~IsLoomProduct();
}
private func ProductionTime(id toProduce) { return 140; }
private func ProductionTime(id product) { return _inherited(product, ...) ?? 140; }
public func PowerNeed() { return 40; }
private func FxIntWorkAnimTimer(object target, proplist effect, int timer)

View File

@ -136,7 +136,7 @@ public func Saw(object target)
return true;
}
private func ProductionTime() { return 100; }
private func ProductionTime(id product) { return _inherited(product, ...) ?? 100; }
private func PowerNeed() { return 20; }
private func FxWoodProductionStart(object t, proplist effect, int temp)

View File

@ -31,7 +31,7 @@ public func IsProduct(id product_id)
return product_id->~IsShipyardProduct();
}
private func ProductionTime(id toProduce) { return 400; }
private func ProductionTime(id product) { return _inherited(product, ...) ?? 400; }
public func PowerNeed() { return 80; }
private func FxIntWorkAnimTimer(object target, proplist effect, int timer)

View File

@ -30,7 +30,7 @@ public func IsProduct(id product_id)
return product_id->~IsToolProduct();
}
private func ProductionTime(id toProduce) { return 150; }
private func ProductionTime(id product) { return _inherited(product, ...) ?? 150; }
public func PowerNeed() { return 40; }
public func OnProductionStart(id product)

View File

@ -120,7 +120,7 @@ private func IsProduct(id product_id)
return product_id->~IsWindmillProduct();
}
private func ProductionTime(id toProduce) { return 290; }
private func ProductionTime(id product) { return _inherited(product, ...) ?? 290; }
public func OnProductionStart(id product)
{

View File

@ -226,7 +226,7 @@ global func Test2_OnStart(int plr)
global func Test2_Completed()
{
if (GetMaterial(240, 80) == Material("Granite"))
if (GetMaterial(240, 60) == Material("Granite"))
return true;
return false;
}