# HG changeset patch # User Matti Hamalainen # Date 1294745575 -7200 # Node ID f9211d1917b7a3abd81a42ee1d39f20a0e242f3c # Parent 5208a2a2668d2c5d546e83d755191a3bb813e138 Moved item fixup data to separate file. diff -r 5208a2a2668d -r f9211d1917b7 index.php --- a/index.php Mon Jan 10 13:18:05 2011 +0200 +++ b/index.php Tue Jan 11 13:32:55 2011 +0200 @@ -2,32 +2,7 @@ $pageTitle = "Pupunen BatMUD Container Command Creator ALPHA"; $pageIndex = "index.php"; require "mcommon.inc.php"; - - -// Multi-stack item fixups -$fixItemTable = array( - "(purple|green) gloves" => 'a ${1} glove', - "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', -); - - -$fixNumbers = array( - "one" => 1, "two" => 2, "three" => 3, "four" => 4, - "five" => 5, "six" => 6, "seven" => 7, "eight" => 8, - "nine" => 9, "ten" => 10 -); +require "itemfixes.inc.php"; function getJSArraySegment($arr) diff -r 5208a2a2668d -r f9211d1917b7 itemfixes.inc.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/itemfixes.inc.php Tue Jan 11 13:32:55 2011 +0200 @@ -0,0 +1,28 @@ + 'a ${1} glove', + "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', +); + + +$fixNumbers = array( + "one" => 1, "two" => 2, "three" => 3, "four" => 4, + "five" => 5, "six" => 6, "seven" => 7, "eight" => 8, + "nine" => 9, "ten" => 10 +); + +?> \ No newline at end of file