From 1ae3eb4c57f373edd1f4745db237af4b49935186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Fri, 4 Apr 2014 20:17:18 +0200 Subject: [PATCH] Replaced cobweb in internet card recipe, enchanting shears with silktouch was a little too silly after all. --- .../assets/opencomputers/lang/de_DE.lang | 2 + .../assets/opencomputers/lang/en_US.lang | 2 + .../opencomputers/recipes/default.recipes | 8 ++- .../opencomputers/recipes/hardmode.recipes | 8 ++- .../opencomputers/textures/items/interweb.png | Bin 0 -> 666 bytes src/main/scala/li/cil/oc/Items.scala | 67 +++++++++++------- .../li/cil/oc/common/item/Interweb.scala | 23 ++++++ src/main/scala/li/cil/oc/util/ItemCosts.scala | 1 + 8 files changed, 84 insertions(+), 27 deletions(-) create mode 100644 src/main/resources/assets/opencomputers/textures/items/interweb.png create mode 100644 src/main/scala/li/cil/oc/common/item/Interweb.scala diff --git a/src/main/resources/assets/opencomputers/lang/de_DE.lang b/src/main/resources/assets/opencomputers/lang/de_DE.lang index b8a4cf697..2488baf88 100644 --- a/src/main/resources/assets/opencomputers/lang/de_DE.lang +++ b/src/main/resources/assets/opencomputers/lang/de_DE.lang @@ -48,6 +48,7 @@ oc:item.HardDiskDrive0.name=Festplatte (Stufe 1) oc:item.HardDiskDrive1.name=Festplatte (Stufe 2) oc:item.HardDiskDrive2.name=Festplatte (Stufe 3) oc:item.InternetCard.name=Internetkarte +oc:item.Interweb.name=Interweb oc:item.IronNugget.name=Eisennugget oc:item.Memory0.name=Speicher (Stufe 1) oc:item.Memory1.name=Speicher (Stufe 2) @@ -139,6 +140,7 @@ oc:tooltip.DiskDrive.CC=ComputerCraft-Disketten werden §aunterstützt§7. oc:tooltip.DiskDrive=Erlaubt es, Disketten zu lesen und zu beschreiben. oc:tooltip.GraphicsCard=Erlaubt es, den angezeigten Inhalt von Bildschirmen zu ändern.[nl] Höchstauflösung: §f%sx%s§7.[nl] Maximale Farbtiefe: §f%s§7.[nl] Operationen/Tick: §f%s§7. oc:tooltip.InternetCard=Diese Karte erlaubt es, HTTP-Anfragen zu senden und echte TCP Sockets zu verwenden. +oc:tooltip.Interweb=Kann in einer Internetkarte verwendet werden, um Computer mit dem rechtsfreien Raum kommunizieren zu lassen. oc:tooltip.IronNugget=Ein Nugget, das aus Eisen besteht, darum wird es ja auch Eisennugget genannt, duh... oc:tooltip.Keyboard=Kann an Bildschirmen befestigt werden, um auf ihnen zu tippen. oc:tooltip.Hologram=Ein Volumendisplay, das beliebige, von Computern festgelegte Voxelstrukturen anzeigt.[nl] Auflösung: §f48x32x48§7. [nl] Farbtiefe: §fMonochrom§7. diff --git a/src/main/resources/assets/opencomputers/lang/en_US.lang b/src/main/resources/assets/opencomputers/lang/en_US.lang index 7940b2e27..2a14b02ca 100644 --- a/src/main/resources/assets/opencomputers/lang/en_US.lang +++ b/src/main/resources/assets/opencomputers/lang/en_US.lang @@ -48,6 +48,7 @@ oc:item.HardDiskDrive0.name=Hard Disk Drive (Tier 1) oc:item.HardDiskDrive1.name=Hard Disk Drive (Tier 2) oc:item.HardDiskDrive2.name=Hard Disk Drive (Tier 3) oc:item.InternetCard.name=Internet Card +oc:item.Interweb.name=Interweb oc:item.IronNugget.name=Iron Nugget oc:item.Memory0.name=Memory (Tier 1) oc:item.Memory1.name=Memory (Tier 2) @@ -139,6 +140,7 @@ oc:tooltip.DiskDrive.CC=ComputerCraft floppies are §asupported§7. oc:tooltip.DiskDrive=Allows reading and writing floppies. oc:tooltip.GraphicsCard=Used to change what's displayed on screens.[nl] Maximum resolution: §f%sx%s§7.[nl] Maximum color depth: §f%s§7.[nl] Operations/tick: §f%s§7. oc:tooltip.InternetCard=This card allows making HTTP requests and using real TCP sockets. +oc:tooltip.Interweb=Congratulations, you win one (1) interweb. You can connect to it using an Internet Card. Beware: don't feed the trolls. oc:tooltip.IronNugget=A nugget made of iron, that's why it's called an Iron Nugget, duh... oc:tooltip.Keyboard=Can be attached to screens to allow typing on them. oc:tooltip.Hologram=A volumetric display that can be controlled by computers to display arbitrary voxel structures.[nl] Resolution: §f48x32x48§7. [nl] Color depth: §fMonochrome§7. diff --git a/src/main/resources/assets/opencomputers/recipes/default.recipes b/src/main/resources/assets/opencomputers/recipes/default.recipes index d0db1c199..9d0a4aa61 100644 --- a/src/main/resources/assets/opencomputers/recipes/default.recipes +++ b/src/main/resources/assets/opencomputers/recipes/default.recipes @@ -87,7 +87,7 @@ graphicsCard3 { ["", "oc:craftingCard", ""]] } internetCard { - input: [[web, "oc:circuitTier2", torchRedstoneActive] + input: [["oc:craftingInterweb", "oc:circuitTier2", torchRedstoneActive] ["", "oc:craftingCard", obsidian]] } redstoneCard { @@ -220,6 +220,12 @@ card { [nuggetIron, nuggetGold, ""]] } +interweb { + input: [[string, string, string] + [string, enderPearl, string] + [string, string, string]] +} + adapter { input: [[ingotIron, "oc:craftingCable", ingotIron] ["oc:craftingCable", "oc:circuitTier1", "oc:craftingCable"] diff --git a/src/main/resources/assets/opencomputers/recipes/hardmode.recipes b/src/main/resources/assets/opencomputers/recipes/hardmode.recipes index bb6fc78dc..eeb8ffe6d 100644 --- a/src/main/resources/assets/opencomputers/recipes/hardmode.recipes +++ b/src/main/resources/assets/opencomputers/recipes/hardmode.recipes @@ -89,7 +89,7 @@ graphicsCard3 { ["", "oc:craftingGPUTier2", ""]] } internetCard { - input: [[web, "oc:circuitTier3", torchRedstoneActive] + input: [["oc:craftingInterweb", "oc:circuitTier3", torchRedstoneActive] ["", "oc:componentCardWLan", obsidian]] } redstoneCard { @@ -227,6 +227,12 @@ card { [nuggetIron, nuggetGold, nuggetGold]] } +interweb { + input: [[string, enderPearl, string] + [enderPearl, string, enderPearl] + [string, enderPearl, string]] +} + adapter { input: [[ingotIron, "oc:craftingCable", ingotIron] ["oc:craftingCable", "oc:circuitTier1", "oc:craftingCable"] diff --git a/src/main/resources/assets/opencomputers/textures/items/interweb.png b/src/main/resources/assets/opencomputers/textures/items/interweb.png new file mode 100644 index 0000000000000000000000000000000000000000..8b4728f1bb6676e048487486f46be89f9995d936 GIT binary patch literal 666 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!WQl7;NpOBzNqJ&XDuZK6ep0G} zXKrG8YEWuoN@d~6R2v2cMvefV5LcJp2G3P9ooDxWuAJ$E{wk~m- z+2t~~*L}f6|NX1H*3NP6ZFHU7=DK3KLwBw3;wi2(Iz8u3@LDv*rX=b6uHjpbD!1YvS^~~^bU_@(_ALCTBRp=&h7V{H^F_)EZd4am)=H)_G;(W zO8>>vg3fI9T|Ct~Kh1G!yVv5$u1lxdWF-Zi+2+t)XWw4sx@?Ne#3t`8iyV6!tg@5b z*3Gu9DR5{kbL^>inb6|gUKM%&xXYwA_l@%$+A6&^EwIi{_1m`8wj|TBx88fj4DZbg zf{twpxw6lHxD1>dot&l zcfQ}GWv`@8ubQ?;aN z`C3%WFDo?7eZja~Eq=xJ$xqH%$J_5x&7aKWdXwdG@9(e0f*seFq%a)3Z53SL5aGa6 zbg6OPmnx&=S|imHhi~%p@M@&(EJ{%+@I7OF>BC>e>r?Vqn?$^N`t9fQsn>*7rEc42 gQ^)lFKNAlFUw~7z($=1dK>sj!y85}Sb4q9e091uf8vp