item access uses reflection instead of lookup table

This commit is contained in:
nilllzz 2016-09-19 04:34:12 +02:00
parent 26afca3916
commit 576a3a7c5d
571 changed files with 1680 additions and 2239 deletions

View File

@ -1036,6 +1036,7 @@
<Compile Include="Pokemon\Items\Berry.vb" /> <Compile Include="Pokemon\Items\Berry.vb" />
<Compile Include="Pokemon\Items\FileItem.vb" /> <Compile Include="Pokemon\Items\FileItem.vb" />
<Compile Include="Pokemon\Items\Item.vb" /> <Compile Include="Pokemon\Items\Item.vb" />
<Compile Include="Pokemon\Items\ItemAttribute.vb" />
<Compile Include="Pokemon\Items\KeyItems\BasementKey.vb" /> <Compile Include="Pokemon\Items\KeyItems\BasementKey.vb" />
<Compile Include="Pokemon\Items\KeyItems\Bicycle.vb" /> <Compile Include="Pokemon\Items\KeyItems\Bicycle.vb" />
<Compile Include="Pokemon\Items\KeyItems\BlueCard.vb" /> <Compile Include="Pokemon\Items\KeyItems\BlueCard.vb" />

View File

@ -139,7 +139,7 @@
End If End If
End Select End Select
p.OriginalItem = CType(p.Item.Copy(), Item) p.OriginalItem = Item.GetItemByID(p.Item.ID)
p.Item = Nothing p.Item = Nothing
End If End If
End Sub End Sub

View File

@ -1,5 +1,6 @@
Namespace Items.Apricorns Namespace Items.Apricorns
<Item(99, "Black Apricorn")>
Public Class BlkApricorn Public Class BlkApricorn
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Apricorns Namespace Items.Apricorns
<Item(89, "Blue Apricorn")>
Public Class BluApricorn Public Class BluApricorn
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Apricorns Namespace Items.Apricorns
<Item(93, "Green Apricorn")>
Public Class GrnApricorn Public Class GrnApricorn
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Apricorns Namespace Items.Apricorns
<Item(101, "Pink Apricorn")>
Public Class PnkApricorn Public Class PnkApricorn
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Apricorns Namespace Items.Apricorns
<Item(85, "Red Apricorn")>
Public Class RedApricorn Public Class RedApricorn
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Apricorns Namespace Items.Apricorns
<Item(97, "White Apricorn")>
Public Class WhtApricorn Public Class WhtApricorn
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Apricorns Namespace Items.Apricorns
<Item(92, "Yellow Apricorn")>
Public Class YlwApricorn Public Class YlwApricorn
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(45, "Cherish Ball")>
Public Class CherishBall Public Class CherishBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(79, "Dive Ball")>
Public Class DiveBall Public Class DiveBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(158, "Dusk Ball")>
Public Class DuskBall Public Class DuskBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(161, "Fast Ball")>
Public Class FastBall Public Class FastBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(164, "Friend Ball")>
Public Class FriendBall Public Class FriendBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(4, "Great Ball")>
Public Class GreatBall Public Class GreatBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(186, "Heal Ball")>
Public Class HealBall Public Class HealBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(157, "Heavy Ball")>
Public Class HeavyBall Public Class HeavyBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(159, "Level Ball")>
Public Class LevelBall Public Class LevelBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(166, "Love Ball")>
Public Class LoveBall Public Class LoveBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(160, "Lure Ball")>
Public Class LureBall Public Class LureBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(174, "Luxury Ball")>
Public Class LuxuryBall Public Class LuxuryBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(1, "Masterball")>
Public Class Masterball Public Class Masterball
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(165, "Moon Ball")>
Public Class MoonBall Public Class MoonBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(188, "Nest Ball")>
Public Class NestBall Public Class NestBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(80, "Net Ball")>
Public Class NetBall Public Class NetBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(5, "Pokéball")>
Public Class Pokeball Public Class Pokeball
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(3, "Premier Ball")>
Public Class PremierBall Public Class PremierBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(129, "Quick Ball")>
Public Class QuickBall Public Class QuickBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(168, "Repeat Ball")>
Public Class RepeatBall Public Class RepeatBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(181, "Safari Ball")>
Public Class SafariBall Public Class SafariBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(177, "Sport Ball")>
Public Class SportBall Public Class SportBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(150, "Timer Ball")>
Public Class TimerBall Public Class TimerBall
Inherits Item Inherits Item

View File

@ -1,5 +1,6 @@
Namespace Items.Balls Namespace Items.Balls
<Item(2, "Ultra Ball")>
Public Class UltraBall Public Class UltraBall
Inherits Item Inherits Item

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2013, "Aguav")>
Public Class AguavBerry Public Class AguavBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2013, "Aguav", 21600, "If held by a Pokémon, it restores the user's HP in a pinch, but it will cause confusion if the user hates the taste.", "6.4cm", "Super Hard", 2, 3) MyBase.New(2013, "Aguav", 21600, "If held by a Pok<EFBFBD>mon, it restores the user's HP in a pinch, but it will cause confusion if the user hates the taste.", "6.4cm", "Super Hard", 2, 3)
Me.Spicy = 0 Me.Spicy = 0
Me.Dry = 0 Me.Dry = 0

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2056, "Apicot")>
Public Class ApicotBerry Public Class ApicotBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2056, "Apicot", 86400, "A Berry to be consumed by Pokémon. If a Pokémon holds one, its Sp. Def stat will increase when it's in a pinch.", "7.6cm", "Very Hard", 1, 2) MyBase.New(2056, "Apicot", 86400, "A Berry to be consumed by Pok<EFBFBD>mon. If a Pok<6F>mon holds one, its Sp. Def stat will increase when it's in a pinch.", "7.6cm", "Very Hard", 1, 2)
Me.Spicy = 10 Me.Spicy = 10
Me.Dry = 30 Me.Dry = 30

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2004, "Aspear")>
Public Class AspearBerry Public Class AspearBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2050, "Babiri")>
Public Class BabiriBerry Public Class BabiriBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2034, "Belue")>
Public Class BelueBerry Public Class BelueBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2016, "Bluk")>
Public Class BlukBerry Public Class BlukBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2046, "Charti")>
Public Class ChartiBerry Public Class ChartiBerry
Inherits Berry Inherits Berry

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2000, "Cheri")>
Public Class CheriBerry Public Class CheriBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2000, "Cheri", 10800, "A Berry to be consumed by Pokémon. If a Pokémon holds one, it can recover from paralysis on its own in battle.", "2.0cm", "Soft", 2, 3) MyBase.New(2000, "Cheri", 10800, "A Berry to be consumed by Pok<EFBFBD>mon. If a Pok<6F>mon holds one, it can recover from paralysis on its own in battle.", "2.0cm", "Soft", 2, 3)
Me.Spicy = 10 Me.Spicy = 10
Me.Dry = 0 Me.Dry = 0

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2001, "Chesto")>
Public Class ChestoBerry Public Class ChestoBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2051, "Chilian")>
Public Class ChilanBerry Public Class ChilanBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2040, "Chople")>
Public Class ChopleBerry Public Class ChopleBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2043, "Coba")>
Public Class CobaBerry Public Class CobaBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2049, "Colbur")>
Public Class ColburBerry Public Class ColburBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2026, "Cornn")>
Public Class CornnBerry Public Class CornnBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2061, "Custap")>
Public Class CustapBerry Public Class CustapBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2033, "Durin")>
Public Class DurinBerry Public Class DurinBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2059, "Enigma")>
Public Class EnigmaBerry Public Class EnigmaBerry
Inherits Berry Inherits Berry

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2010, "Figy")>
Public Class FigyBerry Public Class FigyBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2010, "Figy", 18000, "If held by a Pokémon, it restores the user's HP in a pinch, but it will cause confusion if the user hates the taste.", "10.0cm", "Soft", 2, 3) MyBase.New(2010, "Figy", 18000, "If held by a Pok<EFBFBD>mon, it restores the user's HP in a pinch, but it will cause confusion if the user hates the taste.", "10.0cm", "Soft", 2, 3)
Me.Spicy = 15 Me.Spicy = 15
Me.Dry = 0 Me.Dry = 0

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2053, "Ganlon")>
Public Class GanlonBerry Public Class GanlonBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2053, "Ganlon", 86400, "A Berry to be consumed by Pokémon. If a Pokémon holds one, its Defense stat will increase when it's in a pinch.", "3.3cm", "Very Hard", 1, 2) MyBase.New(2053, "Ganlon", 86400, "A Berry to be consumed by Pok<EFBFBD>mon. If a Pok<6F>mon holds one, its Defense stat will increase when it's in a pinch.", "3.3cm", "Very Hard", 1, 2)
Me.Spicy = 0 Me.Spicy = 0
Me.Dry = 30 Me.Dry = 30

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2024, "Grepa")>
Public Class GrepaBerry Public Class GrepaBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2048, "Haban")>
Public Class HabanBerry Public Class HabanBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2023, "Hondew")>
Public Class HondewBerry Public Class HondewBerry
Inherits Berry Inherits Berry

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2014, "Iapapa")>
Public Class IapapaBerry Public Class IapapaBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2014, "Iapapa", 21600, "If held by a Pokémon, it restores the user's HP in a pinch, but it will cause confusion if the user hates the taste.", "22.3cm", "Soft", 2, 3) MyBase.New(2014, "Iapapa", 21600, "If held by a Pok<EFBFBD>mon, it restores the user's HP in a pinch, but it will cause confusion if the user hates the taste.", "22.3cm", "Soft", 2, 3)
Me.Spicy = 0 Me.Spicy = 0
Me.Dry = 0 Me.Dry = 0

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2062, "Jaboca")>
Public Class JabocaBerry Public Class JabocaBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2047, "Kasib")>
Public Class KasibBerry Public Class KasibBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2041, "Kebia")>
Public Class KebiaBerry Public Class KebiaBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2021, "Kelpsy")>
Public Class KelpsyBerry Public Class KelpsyBerry
Inherits Berry Inherits Berry

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2057, "Lansat")>
Public Class LansatBerry Public Class LansatBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2057, "Lansat", 86400, "A Berry to be consumed by Pokémon. If a Pokémon holds one, its critical-hit ratio will increase when it's in a pinch.", "9.7cm", "Soft", 1, 2) MyBase.New(2057, "Lansat", 86400, "A Berry to be consumed by Pok<EFBFBD>mon. If a Pok<6F>mon holds one, its critical-hit ratio will increase when it's in a pinch.", "9.7cm", "Soft", 1, 2)
Me.Spicy = 30 Me.Spicy = 30
Me.Dry = 10 Me.Dry = 10

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2005, "Leppa")>
Public Class LeppaBerry Public Class LeppaBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2005, "Leppa", 14400, "A Berry to be consumed by a Pokémon. If a Pokémon holds one, it can restore 10 PP to a depleted move during battle.", "2.8cm", "Very Hard", 2, 3) MyBase.New(2005, "Leppa", 14400, "A Berry to be consumed by a Pok<EFBFBD>mon. If a Pok<6F>mon holds one, it can restore 10 PP to a depleted move during battle.", "2.8cm", "Very Hard", 2, 3)
Me.Spicy = 10 Me.Spicy = 10
Me.Dry = 0 Me.Dry = 0

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2052, "Liechi")>
Public Class LiechiBerry Public Class LiechiBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2052, "Liechi", 86400, "A Berry to be consumed by Pokémon. If a Pokémon holds one, its Attack stat will increase when it's in a pinch.", "11.1cm", "Very Hard", 1, 2) MyBase.New(2052, "Liechi", 86400, "A Berry to be consumed by Pok<EFBFBD>mon. If a Pok<6F>mon holds one, its Attack stat will increase when it's in a pinch.", "11.1cm", "Very Hard", 1, 2)
Me.Spicy = 30 Me.Spicy = 30
Me.Dry = 10 Me.Dry = 10

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2008, "Lum")>
Public Class LumBerry Public Class LumBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2008, "Lum", 43200, "A berry to be consumed by a Pokémon. If a Pokémon holds one, it can recover from any status condition during battle.", "3.4cm", "Super Hard", 1, 2) MyBase.New(2008, "Lum", 43200, "A berry to be consumed by a Pok<EFBFBD>mon. If a Pok<6F>mon holds one, it can recover from any status condition during battle.", "3.4cm", "Super Hard", 1, 2)
Me.Spicy = 10 Me.Spicy = 10
Me.Dry = 10 Me.Dry = 10

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2012, "Mago")>
Public Class MagoBerry Public Class MagoBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2012, "Mago", 21600, "If held by a Pokémon, it restores the user's HP in a pinch, but it will cause confusion if the user hates the taste.", "12.6cm", "Hard", 2, 3) MyBase.New(2012, "Mago", 21600, "If held by a Pok<EFBFBD>mon, it restores the user's HP in a pinch, but it will cause confusion if the user hates the taste.", "12.6cm", "Hard", 2, 3)
Me.Spicy = 0 Me.Spicy = 0
Me.Dry = 0 Me.Dry = 0

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2027, "Magost")>
Public Class MagostBerry Public Class MagostBerry
Inherits Berry Inherits Berry

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2060, "Micle")>
Public Class MicleBerry Public Class MicleBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2060, "Micle", 86400, "If held by a Pokémon, it raises the accuracy of a move just once in a pinch.", "4.1cm", "Soft", 1, 5) MyBase.New(2060, "Micle", 86400, "If held by a Pok<EFBFBD>mon, it raises the accuracy of a move just once in a pinch.", "4.1cm", "Soft", 1, 5)
Me.Spicy = 0 Me.Spicy = 0
Me.Dry = 40 Me.Dry = 40

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2017, "Nanab")>
Public Class NanabBerry Public Class NanabBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2029, "Nomel")>
Public Class NomelBerry Public Class NomelBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2035, "Occa")>
Public Class OccaBerry Public Class OccaBerry
Inherits Berry Inherits Berry

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2006, "Oran")>
Public Class OranBerry Public Class OranBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2006, "Oran", 10800, "A Berry to be consumed by Pokémon. If a Pokémon holds one, it can restore its own HP by 10 points during battle.", "3.5cm", "Super Hard", 2, 3) MyBase.New(2006, "Oran", 10800, "A Berry to be consumed by Pok<EFBFBD>mon. If a Pok<6F>mon holds one, it can restore its own HP by 10 points during battle.", "3.5cm", "Super Hard", 2, 3)
Me.Spicy = 10 Me.Spicy = 10
Me.Dry = 10 Me.Dry = 10

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2031, "Pamtre")>
Public Class PamtreBerry Public Class PamtreBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2036, "Passho")>
Public Class PasshoBerry Public Class PasshoBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2044, "Payapa")>
Public Class PayapaBerry Public Class PayapaBerry
Inherits Berry Inherits Berry

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2002, "Pecha")>
Public Class PechaBerry Public Class PechaBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2002, "Pecha", 10800, "A Berry to be consumed by Pokémon. If a Pokémon holds one, it can recover from poisoning on its own in battle.", "4.0cm", "Very Soft", 2, 3) MyBase.New(2002, "Pecha", 10800, "A Berry to be consumed by Pok<EFBFBD>mon. If a Pok<6F>mon holds one, it can recover from poisoning on its own in battle.", "4.0cm", "Very Soft", 2, 3)
Me.Spicy = 0 Me.Spicy = 0
Me.Dry = 0 Me.Dry = 0

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2007, "Persim")>
Public Class PersimBerry Public Class PersimBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2007, "Persim", 14400, "A Berry to be consumed by Pokémon. If a Pokémon holds one, it can recover from confusion on its own in battle.", "4.7cm", "Hard", 2, 3) MyBase.New(2007, "Persim", 14400, "A Berry to be consumed by Pok<EFBFBD>mon. If a Pok<6F>mon holds one, it can recover from confusion on its own in battle.", "4.7cm", "Hard", 2, 3)
Me.Spicy = 10 Me.Spicy = 10
Me.Dry = 10 Me.Dry = 10

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2055, "Petaya")>
Public Class PetayaBerry Public Class PetayaBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2055, "Petaya", 86400, "A Berry to be consumed by Pokémon. If a Pokémon holds one, its Sp. Atk stat will increase when it's in a pinch.", "23.7cm", "Very Hard", 1, 2) MyBase.New(2055, "Petaya", 86400, "A Berry to be consumed by Pok<EFBFBD>mon. If a Pok<6F>mon holds one, its Sp. Atk stat will increase when it's in a pinch.", "23.7cm", "Very Hard", 1, 2)
Me.Spicy = 30 Me.Spicy = 30
Me.Dry = 0 Me.Dry = 0

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2019, "Pinap")>
Public Class PinapBerry Public Class PinapBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2020, "Pomeg")>
Public Class PomegBerry Public Class PomegBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2022, "Qualot")>
Public Class QualotBerry Public Class QualotBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2028, "Rabuta")>
Public Class RabutaBerry Public Class RabutaBerry
Inherits Berry Inherits Berry

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2003, "Rawst")>
Public Class RawstBerry Public Class RawstBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2003, "Rawst", 10800, "A Berry to be consumed by Pokémon. If a Pokémon holds one, it can recover from a burn on its own in battle.", "3.2cm", "Hard", 2, 3) MyBase.New(2003, "Rawst", 10800, "A Berry to be consumed by Pok<EFBFBD>mon. If a Pok<6F>mon holds one, it can recover from a burn on its own in battle.", "3.2cm", "Hard", 2, 3)
Me.Spicy = 0 Me.Spicy = 0
Me.Dry = 0 Me.Dry = 0

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2015, "Razz")>
Public Class RazzBerry Public Class RazzBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2038, "Rindo")>
Public Class RindoBerry Public Class RindoBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2063, "Rowap")>
Public Class RowapBerry Public Class RowapBerry
Inherits Berry Inherits Berry

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2054, "Salac")>
Public Class SalacBerry Public Class SalacBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2054, "Salac", 86400, "A Berry to be held by Pokémon. If a Pokémon holds one, its Speed stat will increase when it's in a pinch. ", "9.4cm", "Very Hard", 1, 2) MyBase.New(2054, "Salac", 86400, "A Berry to be held by Pok<EFBFBD>mon. If a Pok<6F>mon holds one, its Speed stat will increase when it's in a pinch. ", "9.4cm", "Very Hard", 1, 2)
Me.Spicy = 0 Me.Spicy = 0
Me.Dry = 0 Me.Dry = 0

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2042, "Shuca")>
Public Class ShucaBerry Public Class ShucaBerry
Inherits Berry Inherits Berry

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2009, "Sitrus")>
Public Class SitrusBerry Public Class SitrusBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2009, "Sitrus", 21600, "A Berry to be consumed by Pokémon. If a Pokémon holds one, it can restore its own HP by a small amount during battle.", "9.5cm", "Very Hard", 2, 3) MyBase.New(2009, "Sitrus", 21600, "A Berry to be consumed by Pok<EFBFBD>mon. If a Pok<6F>mon holds one, it can restore its own HP by a small amount during battle.", "9.5cm", "Very Hard", 2, 3)
Me.Spicy = 0 Me.Spicy = 0
Me.Dry = 10 Me.Dry = 10

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2030, "Spelon")>
Public Class SpelonBerry Public Class SpelonBerry
Inherits Berry Inherits Berry

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2058, "Starf")>
Public Class StarfBerry Public Class StarfBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2058, "Starf", 86400, "A Berry to be consumed by Pokémon. If a Pokémon holds one, one of its stats will sharply increase when it's in a pinch.", "15.2cm", "Super Hard", 1, 2) MyBase.New(2058, "Starf", 86400, "A Berry to be consumed by Pok<EFBFBD>mon. If a Pok<6F>mon holds one, one of its stats will sharply increase when it's in a pinch.", "15.2cm", "Super Hard", 1, 2)
Me.Spicy = 30 Me.Spicy = 30
Me.Dry = 10 Me.Dry = 10

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2025, "Tamato")>
Public Class TamatoBerry Public Class TamatoBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2045, "Tanga")>
Public Class TangaBerry Public Class TangaBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2037, "Wacan")>
Public Class WacanBerry Public Class WacanBerry
Inherits Berry Inherits Berry

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2032, "Watmel")>
Public Class WatmelBerry Public Class WatmelBerry
Inherits Berry Inherits Berry

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2018, "Wepear")>
Public Class WepearBerry Public Class WepearBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2018, "Wepear", 3600, "Pokéblock ingredient. Plant in loamy soil to grow Wepear.", "7.4cm", "Super Hard", 3, 6) MyBase.New(2018, "Wepear", 3600, "Pok<EFBFBD>block ingredient. Plant in loamy soil to grow Wepear.", "7.4cm", "Super Hard", 3, 6)
Me.Spicy = 0 Me.Spicy = 0
Me.Dry = 0 Me.Dry = 0

View File

@ -1,11 +1,12 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2011, "Wiki")>
Public Class WikiBerry Public Class WikiBerry
Inherits Berry Inherits Berry
Public Sub New() Public Sub New()
MyBase.New(2011, "Wiki", 21600, "If held by a Pokémon, it restores the user's HP in a pinch, but it will cause confusion if the user hates the taste.", "11.5cm", "Hard", 2, 3) MyBase.New(2011, "Wiki", 21600, "If held by a Pok<EFBFBD>mon, it restores the user's HP in a pinch, but it will cause confusion if the user hates the taste.", "11.5cm", "Hard", 2, 3)
Me.Spicy = 0 Me.Spicy = 0
Me.Dry = 15 Me.Dry = 15

View File

@ -1,5 +1,6 @@
Namespace Items.Berries Namespace Items.Berries
<Item(2039, "Yache")>
Public Class YacheBerry Public Class YacheBerry
Inherits Berry Inherits Berry

View File

@ -1,6 +1,6 @@
Namespace Items Namespace Items
Public Class Berry Public MustInherit Class Berry
Inherits MedicineItem Inherits MedicineItem

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,23 @@
Namespace Items
<AttributeUsage(AttributeTargets.Class)>
Friend Class ItemAttribute
Inherits Attribute
Public ReadOnly Property Id As Integer
Public ReadOnly Property Name As String
Public Sub New(id As Integer, name As String)
Me.Id = id
Me.Name = name
End Sub
End Class
Friend Structure ItemIdentifier
Public Name As String
Public Id As Integer
End Structure
End Namespace

Some files were not shown because too many files have changed in this diff Show More