comparison index.php @ 21:f9211d1917b7

Moved item fixup data to separate file.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 11 Jan 2011 13:32:55 +0200
parents 5208a2a2668d
children c0dec130ce74
comparison
equal deleted inserted replaced
20:5208a2a2668d 21:f9211d1917b7
1 <? 1 <?
2 $pageTitle = "Pupunen BatMUD Container Command Creator ALPHA"; 2 $pageTitle = "Pupunen BatMUD Container Command Creator ALPHA";
3 $pageIndex = "index.php"; 3 $pageIndex = "index.php";
4 require "mcommon.inc.php"; 4 require "mcommon.inc.php";
5 5 require "itemfixes.inc.php";
6
7 // Multi-stack item fixups
8 $fixItemTable = array(
9 "(purple|green) gloves" => 'a ${1} glove',
10 "bracelet mades of green crystal" => "bracelet made of green crystal",
11 "alchemist moulded rings" => "alchemist moulded ring",
12
13 // Generic rings
14 "(heavy black metal|steel) rings" => "a ${1} ring",
15
16 // Damiens
17 "arm protectors called Damien \(\S+\)" => "an arm protector called Damien (${1})",
18
19 // Containers
20 "white cloth packs for holding salves" => "white cloth pack for holding salves",
21 "(small|HUGE) shiny boxes for storing minerals" => 'a ${1} shiny box for storing minerals',
22 "(small|HUGE) sturdy packs for storing potions" => 'a ${1} sturdy pack for storing potions',
23 );
24
25
26 $fixNumbers = array(
27 "one" => 1, "two" => 2, "three" => 3, "four" => 4,
28 "five" => 5, "six" => 6, "seven" => 7, "eight" => 8,
29 "nine" => 9, "ten" => 10
30 );
31 6
32 7
33 function getJSArraySegment($arr) 8 function getJSArraySegment($arr)
34 { 9 {
35 $str = ""; 10 $str = "";