Teleglove production: needs any one gem (diamond, ruby, amethyst) to produce (as discussed in #1505).

install-platforms
Clonkonaut 2017-10-27 13:25:34 +02:00
parent fceda32505
commit 2c4aba74f0
1 changed files with 6 additions and 1 deletions

View File

@ -271,6 +271,11 @@ protected func CancelUse(object clonk)
/*-- Production --*/
func IsInventorProduct() { return true; }
public func GetSubstituteComponent(id component) // Can be made from earth or sand
{
if (component == Diamond)
return [Ruby, Amethyst];
}
/*-- Display --*/
@ -298,4 +303,4 @@ func Definition(def)
local Name = "$Name$";
local Description = "$Description$";
local Collectible = true;
local Components = {Metal = 2};
local Components = {Metal = 2, Diamond = 1};