Skip to content
Permalink
Browse files

Teleglove production: needs any one gem (diamond, ruby, amethyst) to …

…produce (as discussed in #1505).
  • Loading branch information
Armag3ddon committed Oct 27, 2017
1 parent fceda32 commit 2c4aba74f0699e558f381a965637b33abd7189d0
Showing with 6 additions and 1 deletion.
  1. +6 −1 planet/Objects.ocd/Items.ocd/Tools.ocd/TeleGlove.ocd/Script.c
@@ -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

This comment has been minimized.

Copy link
@lluchs

lluchs Oct 27, 2017

Member

You forgot to update that comment.

This comment has been minimized.

Copy link
@Armag3ddon

Armag3ddon Oct 29, 2017

Author Contributor

You are correct!

{
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};

0 comments on commit 2c4aba7

Please sign in to comment.
You can’t perform that action at this time.