changeset 14:11f9c6fc4e6e

Fixes.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 10 Jan 2011 09:05:40 +0200
parents 1edbabcbcdbd
children 2aa632a8610f
files index.php
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/index.php	Mon Jan 10 08:49:45 2011 +0200
+++ b/index.php	Mon Jan 10 09:05:40 2011 +0200
@@ -7,10 +7,16 @@
 // Multi-stack item fixups
 $fixItemTable = array(
   "(purple|green) gloves" => 'a ${1} glove',
-  "heavy black metal rings" => "a heavy black metal ring",
   "bracelet mades of green crystal" => "bracelet made of green crystal",
   "alchemist moulded rings" => "alchemist moulded ring",
+
+  // Generic rings
+  "(heavy black metal|steel) rings" => "a ${1} ring",
+
+  // Damiens
+  "arm protectors called Damien \(\S+\)" => "an arm protector called Damien (${1})",
   
+  // Containers  
   "white cloth packs for holding salves" => "white cloth pack for holding salves",
   "(small|HUGE) shiny boxes for storing minerals" => 'a ${1} shiny box for storing minerals',
   "(small|HUGE) sturdy packs for storing potions" => 'a ${1} sturdy pack for storing potions',
@@ -878,11 +884,11 @@
     }
     
     if (mode == "batmud") {
-      if (!cmd_seq)      str += "command "+cmd_prefix+container.name+" ";
-      if (cmd_autoclose) str += "open "+container.name+delim;
+      if (!cmd_seq)      str += "command "+ cmd_prefix + container.name +" ";
+      if (cmd_autoclose) str += "open "+ container.name + cmd_delim;
       if (!cmd_seq)      str += expandCmd(cmd_cmd, s, container.name);
         else 		 str += s;
-      if (cmd_autoclose) str += delim+"close "+container.name;
+      if (cmd_autoclose) str += cmd_delim +"close "+ container.name;
       str += "\n";
     }
   }