Changeset 201

Show
Ignore:
Timestamp:
06/02/07 03:19:11 (3 years ago)
Author:
eevee
Message:

Some improvements to item pages. (#10)
Also fixed brokenness with held items, again..

Location:
veekun/trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/lib/Vee/Dex.pm

    r199 r201  
    199199our (@MoveData, $DamagingMoveCount); 
    200200our (%TypeData, @TypeNames, %OldTypeOrder); 
    201 our (@AbilityNames); 
     201our (@AbilityNames, @ItemNames); 
    202202our (@TMs, %MoveTMs); 
    203203our %FuzzyMatches; 
     
    229229 
    230230    @AbilityNames = $schema->resultset('Abilities')->search({ id => { '<', 200 } }, { order_by => 'id ASC', columns => ['name'] })->get_column('name')->all; 
     231    @ItemNames    = $schema->resultset('Items')    ->search(undef,                  { order_by => 'id ASC', columns => ['name'] })->get_column('name')->all; 
    231232 
    232233    # so I can use one-based ids with these 
     
    239240    unshift @MoveData, {}; 
    240241    unshift @AbilityNames, undef; 
     242    unshift @ItemNames, undef; 
    241243 
    242244    # machines 
     
    257259 
    258260    # temporary, just for the below code; possibly to be promoted later 
    259     my @itemnames = $schema->resultset('Items')->search(undef, { order_by => 'id ASC', columns => [qw/name/] })->get_column('name')->all; 
    260261    my @movenames = $schema->resultset('Moves')->search(undef, { order_by => 'id ASC', columns => [qw/name_romaji name_jp/] }); 
    261262    my @movekana   = ( undef, map { $_->name_jp     } @movenames ); 
     
    274275    $FuzzyMatches{ lc $TypeNames[$_]       } = { type => 'type',    id => $_, name => $TypeNames[$_]       } for 0 .. $#TypeNames; 
    275276    $FuzzyMatches{ lc $AbilityNames[$_]    } = { type => 'ability', id => $_, name => $AbilityNames[$_]    } for 1 .. $#AbilityNames; 
    276     $FuzzyMatches{ lc $itemnames[$_]       } = { type => 'item',    id => $_ + 1, name => $itemnames[$_]   } for 0 .. $#itemnames; 
     277    $FuzzyMatches{ lc $ItemNames[$_]       } = { type => 'item',    id => $_, name => $ItemNames[$_]       } for 1 .. $#ItemNames; 
    277278 
    278279    # TODO: hack!  remove this when I get kana/romaji for everything 
  • veekun/trunk/lib/Vee/Schema/Items.pm

    r196 r201  
    1414__PACKAGE__->add_unique_constraint(["id"], undef); 
    1515 
     16sub display_name { 
     17    my ($self) = @_; 
     18 
     19    my $name = $self->name; 
     20    $name =~ s/Poke/Pok&eacute;/; 
     21    return $name; 
     22} 
     23 
    16241; 
    1725 
  • veekun/trunk/script/pokedex.sql

    r196 r201  
    41834183(60,60,'X Accuracy',950,0,0,0,0,30,0,'31',19,0,0,1,0,0,0,0,0,1,0,6,0,0,0,0,0,0,0,0,1,1,0,'An item that raises the accuracy of a Pokémon in battle. It wears off if the Pokémon is withdrawn.'), 
    41844184(61,61,'X Special',350,0,0,0,0,30,0,'31',19,0,0,1,0,0,0,16,0,0,0,6,0,0,0,0,0,0,0,0,1,1,0,'An item that raises the Sp. Atk stat of a Pokémon in battle. It wears off if the Pokémon is withdrawn.'), 
    4185 (62,62,'X Sp.',350,0,0,0,0,30,0,'31',19,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'An item that raises the Sp. Def stat of a Pokémon in battle. It wears off if the Pokémon is withdrawn.'), 
    4186 (63,63,'Poké Doll',1000,0,0,0,0,30,0,'31',19,0,3,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'A doll that attracts Pokémon. Use it to flee from any battle with a wild Pokémon.'), 
     4185(62,62,'X Sp. Def',350,0,0,0,0,30,0,'31',19,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'An item that raises the Sp. Def stat of a Pokémon in battle. It wears off if the Pokémon is withdrawn.'), 
     4186(63,63,'Poke Doll',1000,0,0,0,0,30,0,'31',19,0,3,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'A doll that attracts Pokémon. Use it to flee from any battle with a wild Pokémon.'), 
    41874187(64,64,'Fluffy Tail',1000,0,0,0,0,30,0,'31',19,0,3,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'An item that attracts Pokémon. Use it to flee from any battle with a wild Pokémon.'), 
    41884188(65,65,'Blue Flute',100,0,0,0,0,30,0,'31',67,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'A blue flute made from blown glass. Its melody awakens a single Pokémon from sleep.'), 
     
    43194319(196,219,'Mental Herb',100,53,0,0,25,10,0,'31',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'An item to be held by a Pokémon. It snaps the holder out of infatuation. It can be used only once.'), 
    43204320(197,220,'Choice Band',100,54,0,0,0,10,0,'31',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'An item to be held by a Pokémon. This headband ups Attack, but allows the use of only one kind of move.'), 
    4321 (198,221,'King’s Rock',100,55,10,0,26,30,0,'31',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'An item to be held by a Pokémon. It may cause the foe to flinch when the holder inflicts damage.'), 
     4321(198,221,'King\'s Rock',100,55,10,0,26,30,0,'31',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'An item to be held by a Pokémon. It may cause the foe to flinch when the holder inflicts damage.'), 
    43224322(199,222,'SilverPowder',100,56,20,0,0,10,0,'31',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'An item to be held by a Pokémon. It is a shiny, silver powder that ups the power of Bug-type moves.'), 
    43234323(200,223,'Amulet Coin',100,57,10,0,0,30,0,'31',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'An item to be held by a Pokémon. It doubles a battle\'s prize money if the holding Pokémon joins in.'), 
     
    45294529(406,429,'Loot Sack',0,0,0,0,0,0,0,'191',3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'A sturdy, spacious bag that is used to carry loot obtained in the coal mine.'), 
    45304530(407,430,'Rule Book',0,0,0,0,0,0,0,'191',3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'It lists the rules for holding battles. For linked battles, you may choose which set of rules you wish to use.'), 
    4531 (408,431,'Poké Radar',0,0,0,0,0,0,0,'255',3,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'A tool that can search out Pokémon that are hiding in grass. Its battery is recharged as you walk.'), 
     4531(408,431,'Poke Radar',0,0,0,0,0,0,0,'255',3,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'A tool that can search out Pokémon that are hiding in grass. Its battery is recharged as you walk.'), 
    45324532(409,432,'Point Card',0,0,0,0,0,0,0,'255',3,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'A card that lists the Battle Points you have earned. '), 
    45334533(410,433,'Journal',0,0,0,0,0,0,0,'255',3,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'A notebook that keeps a day-to-day record of your adventure so far. '), 
     
    45504550(427,450,'Bicycle',0,0,0,0,0,0,0,'255',3,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'A folding Bicycle that enables much faster movement than the Running Shoes.'), 
    45514551(428,451,'Suite Key',0,0,0,0,0,0,0,'191',3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'A key to one of the suites at the luxury hotel by a lake. For some odd reason, it often disappears.'), 
    4552 (429,452,'Oak’s Letter',0,0,0,0,0,0,0,'191',3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'A letter from Prof. Oak. Written in it is a request for you to go to Rt. 224.'), 
     4552(429,452,'Oak\'s Letter',0,0,0,0,0,0,0,'191',3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'A letter from Prof. Oak. Written in it is a request for you to go to Rt. 224.'), 
    45534553(430,453,'Lunar Wing',0,0,0,0,0,0,0,'191',3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'A feather that glows like the moon. It is said to possess the power to dispel nightmares.'), 
    45544554(431,454,'Member Card',0,0,0,0,0,0,0,'191',3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'A card needed for entering the inn in Canalave City. Oddly, the last date marked on it was 50 years ago.'), 
     
    1442214422LOCK TABLES pokemon_items WRITE; 
    1442314423/*!40000 ALTER TABLE pokemon_items DISABLE KEYS */; 
    14424 INSERT INTO pokemon_items VALUES (12,222,5), 
    14425 (15,245,5), 
    14426 (19,200,5), 
    14427 (20,200,5), 
    14428 (22,244,5), 
    14429 (25,155,50), 
    14430 (25,236,5), 
    14431 (26,155,5), 
    14432 (27,217,5), 
    14433 (28,217,5), 
     14424INSERT INTO pokemon_items VALUES (12,199,5), 
     14425(15,222,5), 
     14426(19,177,5), 
     14427(20,177,5), 
     14428(22,221,5), 
     14429(25,132,50), 
     14430(25,213,5), 
     14431(26,132,5), 
     14432(27,194,5), 
     14433(28,194,5), 
    1443414434(35,81,5), 
    14435 (35,154,50), 
     14435(35,131,50), 
    1443614436(36,81,5), 
    14437 (36,154,50), 
    14438 (37,152,55), 
    14439 (38,152,55), 
     14437(36,131,50), 
     14438(37,129,55), 
     14439(38,129,55), 
    1444014440(46,86,50), 
    1444114441(46,87,5), 
    1444214442(47,86,50), 
    1444314443(47,87,5), 
    14444 (49,295,5), 
    14445 (50,237,5), 
    14446 (51,237,5), 
    14447 (52,217,5), 
    14448 (53,217,5), 
    14449 (56,193,5), 
    14450 (57,193,5), 
    14451 (58,152,55), 
    14452 (59,152,55), 
    14453 (61,221,5), 
    14454 (62,221,5), 
    14455 (63,248,5), 
    14456 (64,248,5), 
    14457 (65,248,5), 
    14458 (72,245,5), 
    14459 (73,245,5), 
    14460 (74,229,5), 
    14461 (75,229,5), 
    14462 (76,229,5), 
    14463 (77,191,5), 
    14464 (78,191,5), 
    14465 (79,279,5), 
    14466 (80,221,5), 
    14467 (81,233,5), 
    14468 (82,233,5), 
    14469 (83,259,5), 
    14470 (84,244,5), 
    14471 (85,244,5), 
     14444(49,272,5), 
     14445(50,214,5), 
     14446(51,214,5), 
     14447(52,194,5), 
     14448(53,194,5), 
     14449(56,170,5), 
     14450(57,170,5), 
     14451(58,129,55), 
     14452(59,129,55), 
     14453(61,198,5), 
     14454(62,198,5), 
     14455(63,225,5), 
     14456(64,225,5), 
     14457(65,225,5), 
     14458(72,222,5), 
     14459(73,222,5), 
     14460(74,206,5), 
     14461(75,206,5), 
     14462(76,206,5), 
     14463(77,168,5), 
     14464(78,168,5), 
     14465(79,256,5), 
     14466(80,198,5), 
     14467(81,210,5), 
     14468(82,210,5), 
     14469(83,236,5), 
     14470(84,221,5), 
     14471(85,221,5), 
    1447214472(88,92,5), 
    1447314473(89,92,5), 
     
    1447614476(91,88,50), 
    1447714477(91,89,5), 
    14478 (104,258,5), 
    14479 (105,258,5), 
    14480 (108,279,5), 
    14481 (109,228,5), 
    14482 (110,228,5), 
     14478(104,235,5), 
     14479(105,235,5), 
     14480(108,256,5), 
     14481(109,205,5), 
     14482(110,205,5), 
    1448314483(113,110,50), 
    14484 (113,231,5), 
    14485 (116,235,5), 
    14486 (117,235,5), 
     14484(113,208,5), 
     14485(116,212,5), 
     14486(117,212,5), 
    1448714487(120,90,50), 
    1448814488(120,91,5), 
    1448914489(121,90,50), 
    1449014490(121,91,5), 
    14491 (122,154,5), 
    14492 (124,153,55), 
    14493 (125,322,50), 
    14494 (126,323,5), 
    14495 (132,257,5), 
    14496 (132,274,50), 
    14497 (143,234,55), 
    14498 (147,235,5), 
    14499 (148,235,5), 
    14500 (149,235,5), 
    14501 (151,157,55), 
    14502 (161,155,5), 
    14503 (162,155,50), 
    14504 (162,158,5), 
    14505 (170,227,5), 
    14506 (171,227,5), 
    14507 (172,155,5), 
     14491(122,131,5), 
     14492(124,130,55), 
     14493(125,299,50), 
     14494(126,300,5), 
     14495(132,234,5), 
     14496(132,251,50), 
     14497(143,211,55), 
     14498(147,212,5), 
     14499(148,212,5), 
     14500(149,212,5), 
     14501(151,134,55), 
     14502(161,132,5), 
     14503(162,132,50), 
     14504(162,135,5), 
     14505(170,204,5), 
     14506(171,204,5), 
     14507(172,132,5), 
    1450814508(173,81,5), 
    14509 (173,154,50), 
    14510 (186,221,5), 
    14511 (191,192,5), 
    14512 (193,265,5), 
    14513 (199,221,5), 
    14514 (203,156,5), 
    14515 (208,233,5), 
    14516 (211,245,5), 
    14517 (213,155,55), 
    14518 (215,217,5), 
    14519 (215,286,50), 
    14520 (222,238,5), 
    14521 (230,235,5), 
    14522 (231,185,5), 
    14523 (232,185,5), 
    14524 (238,153,55), 
    14525 (239,322,50), 
    14526 (240,323,5), 
     14509(173,131,50), 
     14510(186,198,5), 
     14511(191,169,5), 
     14512(193,242,5), 
     14513(199,198,5), 
     14514(203,133,5), 
     14515(208,210,5), 
     14516(211,222,5), 
     14517(213,132,55), 
     14518(215,194,5), 
     14519(215,263,50), 
     14520(222,215,5), 
     14521(230,212,5), 
     14522(231,162,5), 
     14523(232,162,5), 
     14524(238,130,55), 
     14525(239,299,50), 
     14526(240,300,5), 
    1452714527(241,33,55), 
    1452814528(242,110,50), 
    14529 (242,231,5), 
     14529(242,208,5), 
    1453014530(250,44,55), 
    14531 (251,157,55), 
    14532 (261,151,5), 
    14533 (262,151,5), 
    14534 (263,155,5), 
    14535 (264,155,50), 
    14536 (264,158,5), 
    14537 (267,295,5), 
    14538 (269,295,5), 
    14539 (276,195,5), 
    14540 (277,195,5), 
    14541 (284,222,5), 
    14542 (285,190,5), 
    14543 (286,190,5), 
    14544 (293,150,5), 
    14545 (294,150,5), 
    14546 (295,150,5), 
    14547 (297,221,5), 
    14548 (299,238,5), 
    14549 (300,154,5), 
    14550 (301,154,5), 
    14551 (303,184,5), 
    14552 (304,238,5), 
    14553 (305,238,5), 
    14554 (306,238,5), 
    14555 (315,245,5), 
     14531(251,134,55), 
     14532(261,128,5), 
     14533(262,128,5), 
     14534(263,132,5), 
     14535(264,132,50), 
     14536(264,135,5), 
     14537(267,272,5), 
     14538(269,272,5), 
     14539(276,172,5), 
     14540(277,172,5), 
     14541(284,199,5), 
     14542(285,167,5), 
     14543(286,167,5), 
     14544(293,127,5), 
     14545(294,127,5), 
     14546(295,127,5), 
     14547(297,198,5), 
     14548(299,215,5), 
     14549(300,131,5), 
     14550(301,131,5), 
     14551(303,161,5), 
     14552(304,215,5), 
     14553(305,215,5), 
     14554(306,215,5), 
     14555(315,222,5), 
    1455614556(316,89,5), 
    1455714557(317,89,5), 
    14558 (318,226,5), 
    14559 (319,226,5), 
    14560 (322,152,55), 
    14561 (323,152,55), 
    14562 (325,194,5), 
    14563 (326,194,5), 
    14564 (327,150,5), 
    14565 (328,237,5), 
    14566 (331,288,5), 
    14567 (332,288,5), 
    14568 (335,217,5), 
     14558(318,203,5), 
     14559(319,203,5), 
     14560(322,129,55), 
     14561(323,129,55), 
     14562(325,171,5), 
     14563(326,171,5), 
     14564(327,127,5), 
     14565(328,214,5), 
     14566(331,265,5), 
     14567(332,265,5), 
     14568(335,194,5), 
    1456914569(337,81,5), 
    1457014570(338,80,5), 
    14571 (345,296,5), 
    14572 (346,296,5), 
    14573 (351,243,55), 
    14574 (352,156,5), 
    14575 (353,247,5), 
    14576 (354,247,5), 
    14577 (355,196,5), 
    14578 (356,196,5), 
    14579 (358,198,5), 
    14580 (361,199,5), 
    14581 (362,199,5), 
     14571(345,273,5), 
     14572(346,273,5), 
     14573(351,220,55), 
     14574(352,133,5), 
     14575(353,224,5), 
     14576(354,224,5), 
     14577(355,173,5), 
     14578(356,173,5), 
     14579(358,175,5), 
     14580(361,176,5), 
     14581(362,176,5), 
    1458214582(366,89,5), 
    14583 (367,226,5), 
    14584 (368,227,5), 
    14585 (369,227,5), 
     14583(367,203,5), 
     14584(368,204,5), 
     14585(369,204,5), 
    1458614586(370,93,50), 
    14587 (371,250,5), 
    14588 (372,250,5), 
    14589 (373,250,5), 
    14590 (374,233,5), 
    14591 (375,233,5), 
    14592 (376,233,5), 
     14587(371,227,5), 
     14588(372,227,5), 
     14589(373,227,5), 
     14590(374,210,5), 
     14591(375,210,5), 
     14592(376,210,5), 
    1459314593(385,91,55), 
    14594 (396,188,5), 
    14595 (397,188,5), 
    14596 (398,188,5), 
    14597 (400,155,50), 
    14598 (400,158,5), 
    14599 (401,277,5), 
    14600 (402,277,5), 
    14601 (406,245,5), 
    14602 (407,245,5), 
    14603 (413,222,5), 
    14604 (414,222,5), 
     14594(396,165,5), 
     14595(397,165,5), 
     14596(398,165,5), 
     14597(400,132,50), 
     14598(400,135,5), 
     14599(401,254,5), 
     14600(402,254,5), 
     14601(406,222,5), 
     14602(407,222,5), 
     14603(413,199,5), 
     14604(414,199,5), 
    1460514605(415,94,55), 
    14606 (416,245,5), 
    14607 (418,186,5), 
    14608 (419,186,5), 
    14609 (420,239,5), 
    14610 (421,239,5), 
    14611 (427,189,5), 
    14612 (428,189,5), 
    14613 (431,149,5), 
    14614 (432,149,5), 
    14615 (433,198,5), 
    14616 (434,151,5), 
    14617 (435,151,5), 
    14618 (436,233,5), 
    14619 (437,233,5), 
    14620 (439,154,5), 
     14606(416,222,5), 
     14607(418,163,5), 
     14608(419,163,5), 
     14609(420,216,5), 
     14610(421,216,5), 
     14611(427,166,5), 
     14612(428,166,5), 
     14613(431,126,5), 
     14614(432,126,5), 
     14615(433,175,5), 
     14616(434,128,5), 
     14617(435,128,5), 
     14618(436,210,5), 
     14619(437,210,5), 
     14620(439,131,5), 
    1462114621(440,110,50), 
    14622 (440,256,5), 
    14623 (441,277,5), 
    14624 (443,197,5), 
    14625 (444,197,5), 
    14626 (445,197,5), 
    14627 (446,234,55), 
    14628 (451,245,5), 
    14629 (452,245,5), 
    14630 (453,281,5), 
    14631 (454,281,5), 
    14632 (456,187,5), 
    14633 (457,187,5), 
    14634 (459,246,5), 
    14635 (460,246,5), 
    14636 (461,217,5), 
    14637 (461,286,50), 
    14638 (462,233,5), 
    14639 (463,279,5), 
    14640 (466,322,50), 
    14641 (467,323,5), 
    14642 (469,265,5), 
    14643 (476,238,5), 
    14644 (477,196,5), 
    14645 (478,199,5), 
    14646 (492,157,55), 
    14647 (499,222,5), 
    14648 (500,222,5); 
     14622(440,233,5), 
     14623(441,254,5), 
     14624(443,174,5), 
     14625(444,174,5), 
     14626(445,174,5), 
     14627(446,211,55), 
     14628(451,222,5), 
     14629(452,222,5), 
     14630(453,258,5), 
     14631(454,258,5), 
     14632(456,164,5), 
     14633(457,164,5), 
     14634(459,223,5), 
     14635(460,223,5), 
     14636(461,194,5), 
     14637(461,263,50), 
     14638(462,210,5), 
     14639(463,256,5), 
     14640(466,299,50), 
     14641(467,300,5), 
     14642(469,242,5), 
     14643(476,215,5), 
     14644(477,173,5), 
     14645(478,176,5), 
     14646(492,134,55), 
     14647(499,199,5), 
     14648(500,199,5); 
    1464914649/*!40000 ALTER TABLE pokemon_items ENABLE KEYS */; 
    1465014650UNLOCK TABLES; 
  • veekun/trunk/templates/dex/common.tt

    r163 r201  
    100100    <td class="stat">[% stat_avg / 6 | format('%.01f') %]</td> 
    101101[%+ END %] 
     102 
     103[% MACRO item_sprite(item_name) BLOCK %] 
     104[%     IF ( matches = item_name.match('^(TM|HM)(\d\d)$') ) %] 
     105[%         tm_num = matches.1 %] 
     106[%         SET tm_num = tm_num + 100 IF matches.0 == 'HM' %] 
     107[%         item_file = matches.0 _ "-" _ MoveData.${TMs.3.$tm_num}.type | lower %] 
     108[%     ELSE %] 
     109[% matches.join %] 
     110[%         item_file = item_name.replace(' ', '-').replace('[^-a-zA-Z0-9]', '') | lower %] 
     111[%     END -%] 
     112<img src="/dex-images/items/[% item_file %].png" alt=""/> 
     113[%- END %] 
     114 
    102115[% END %] 
  • veekun/trunk/templates/dex/list/items.tt

    r197 r201  
    44<table class="dex-table dex-squished" cellspacing="0"> 
    55<tr class="heading"> 
     6    <th class="number"></th> 
    67    <th class="number"> Id </th> 
    78    <th class="name"> Name </th> 
     
    1011[% WHILE (item = items_rs.next) %] 
    1112<tr class="color[% color %]"> 
     13    <td class="number"> [% item_sprite(item.name) %] </td> 
    1214    <td class="number"> [% item.id %] </td> 
    13     <td class="name"> <a href="[% dex_uri('items', item.name) %]">[% item.name %]</a> </td> 
     15    <td class="name"> <a href="[% dex_uri('items', item.name) %]">[% item.display_name %]</a> </td> 
    1416[%     color = 3 - color %] 
    1517[% END %] 
  • veekun/trunk/templates/dex/page/item.tt

    r197 r201  
    11[% PROCESS 'dex/common.tt' %] 
    22 
    3 [%# nextid = this.id % MoveData.max + 1; previd = (this.id - 2) % MoveData.max + 1 -%] 
    4 <!-- 
     3[% nextid = this.id % ItemNames.max + 1; previd = (this.id - 2) % ItemNames.max + 1 -%] 
     4 
    55<p class="dex-navigation"> 
    6     <a href="[% dex_uri('moves', MoveData.$nextid.name) %]" class="next blocklink"> Next: #[% nextid %]<br/>[% MoveData.$nextid.name %] </a> 
    7     <a href="[% dex_uri('moves', MoveData.$previd.name) %]" class="prev blocklink"> Prev: #[% previd %]<br/>[% MoveData.$previd.name %] </a> 
    8     [% this.id %]<br/>[% this.name %] 
    9     </p> 
    10 --> 
     6    <a href="[% dex_uri('items', ItemNames.$nextid) %]" class="next blocklink"> [% item_sprite(ItemNames.$nextid) %] Next:<br/>[% ItemNames.$nextid %] </a> 
     7    <a href="[% dex_uri('items', ItemNames.$previd) %]" class="prev blocklink"> [% item_sprite(ItemNames.$previd) %] Prev:<br/>[% ItemNames.$previd %] </a> 
     8    [% item_sprite(this.name) %]<br/>[% this.display_name %] 
     9</p> 
    1110 
    1211<div class="warning">WARNING: I don't know what a lot of these numbers are yet, 
     
    1615<h1>General</h1> 
    1716<div class="dex-summary dex-summary-half"> 
    18     <div class="name">[% this.name %]</div> 
     17    <div class="name">[% this.display_name %]</div> 
    1918</div> 
    2019<div class="dex-long-box">