Mercurial > hg > batmud > chester
diff itemfixes.inc.php @ 23:35f0c0ce0c51
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 11 Jan 2011 14:36:13 +0200 |
parents | c0dec130ce74 |
children | 892c904b5e9d |
line wrap: on
line diff
--- a/itemfixes.inc.php Tue Jan 11 13:45:00 2011 +0200 +++ b/itemfixes.inc.php Tue Jan 11 14:36:13 2011 +0200 @@ -1,7 +1,14 @@ <? +// Special item name fixups +$fixItemTable = array( + "^a book of eternal youth \([a-z ]+\)" => "a book of eternal youth", + "^small crystal box \([a-z ]+\)" => "small crystal box" +); + + // Multi-stack item fixups -$fixItemTable = array( +$fixStackTable = array( "^(purple|green) gloves" => 'a ${1} glove', "^bracelet mades of green crystal" => "bracelet made of green crystal", "^alchemist moulded rings" => "alchemist moulded ring", @@ -11,18 +18,15 @@ // Damiens "^arm protectors called Damien \(\S+\)" => "an arm protector called Damien (${1})", - "^a book of eternal youth ([a-z ]+)" => "a book of eternal youth", // 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', - "^small crystal box \([a-z ]+\)" => "small crystal box" ); $fixNumbers = array( - "one" => 1, "two" => 2, "three" => 3, "four" => 4,