Skip to content
Unowndeveloper edited this page Nov 12, 2016 · 2 revisions

PokeModBlue

Type IPokedexEntry

Interface for the PokedexEntry, not current used


Type Items.Weapons.PokemonWeapon

This class is the base class for all Players summonable Pokemon.


Field Items.Weapons.PokemonWeapon.typeI

Gets and caches the result of the pokemon's first type


Field Items.Weapons.PokemonWeapon.typeII

Gets and caches the result of the pokemon's second type


Method NPCs.Pokemon.PokemonNPC.getTypeEffectiveness(System.Int32,System.Int32,System.Int32)

gets the multiplier for damage based on the attacking move type, and the types of the defending pokemon


Field NPCs.Pokemon.PokemonNPC.typeI

Gets and caches the result of the pokemon's first type


Field NPCs.Pokemon.PokemonNPC.typeII

Gets and caches the result of the pokemon's second type


Type Pokedex

A class for managing Pokedex entries, also has some old commented out code for printing those entries out to file as the .cs files needed for the buffs, npcs and weapons. Format has changed since, and has been updated in the files, not in the generator below


Field Pokedex.pokedex

The pokedex


Method Pokedex.#cctor

Initializes the class.


Method Pokedex.DoNothing

Do Nothing. Used because JSON will not load until the class is used, want to control when the JSON is loaded due to it's somewhat intensive process and memory usage


Type PokedexEntry

PokedexEntry. Object representation of the species Pokedex entry, storing all their stats accessible at runtime.


Property PokedexEntry.Per

Gets or sets the personality

Value: The personality.


Property PokedexEntry.Nat

Gets or sets the nature

Value: The nature.


Property PokedexEntry.HP

Gets or sets the hp.

Value: The hp.


Property PokedexEntry.Atk

Gets or sets the atk.

Value: The atk.


Property PokedexEntry.Def

Gets or sets the def.

Value: The def.


Property PokedexEntry.SpA

Gets or sets the sp a.

Value: The sp a.


Property PokedexEntry.SpD

Gets or sets the sp d.

Value: The sp d.


Property PokedexEntry.Spe

Gets or sets the spe.

Value: The spe.


Property PokedexEntry.Total

Gets or sets the stat total.

Value: The stat total.


Property PokedexEntry.Type_I

Gets or sets the type i.

Value: The type i.


Property PokedexEntry.Type_II

Gets or sets the type ii.

Value: The type ii.


Property PokedexEntry.Tier

Gets or sets the tier.

Value: The tier.


Property PokedexEntry.Ability_I

Gets or sets the ability i.

Value: The ability i.


Property PokedexEntry.Ability_II

Gets or sets the ability ii.

Value: The ability ii.


Property PokedexEntry.Hidden_Ability

Gets or sets the hidden ability.

Value: The hidden ability.


Property PokedexEntry.Mass

Gets or sets the mass.

Value: The mass.


Property PokedexEntry.LK_GK

Gets or sets the lk gk.

Value: The lk gk.


Property PokedexEntry.EV_Worth

Gets or sets the ev worth.

Value: The ev worth.


Property PokedexEntry.EXPV

Gets or sets the expv.

Value: The expv.


Property PokedexEntry.Color

Gets or sets the color.

Value: The color.


Property PokedexEntry.Hatch

Gets or sets the hatch.

Value: The hatch.


Property PokedexEntry.Gender

Gets or sets the gender.

Value: The gender.


Property PokedexEntry.Egg_Group_I

Gets or sets the egg group i.

Value: The egg group i.


Property PokedexEntry.Egg_Group_II

Gets or sets the egg group ii.

Value: The egg group ii.


Property PokedexEntry.Catch

Gets or sets the catch.

Value: The catch.


Property PokedexEntry.EXP

Gets or sets the exp.

Value: The exp.


Property PokedexEntry.EvolveLevel

Gets or sets the evolve level.

Value: The evolve level.


Property PokedexEntry.EvolveID

Gets or sets the evolve identifier.

Value: The evolve identifier.


Property PokedexEntry.Joh

Gets or sets the Johto Pokedex number.

Value: The Johto Pokedex number.


Property PokedexEntry.Hoe

Gets or sets the Hoenn Pokedex number.

Value: The Hoenn Pokedex number.


Property PokedexEntry.Sin

Gets or sets the Sinoh Pokedex number.

Value: The Sinoh Pokedex number.


Property PokedexEntry.Un

Gets or sets the Unova Pokedex number.

Value: The Unova Pokedex number.


Property PokedexEntry.Pokemon

Gets or sets the Pokemon species name.

Value: The Pokemon species name.


Method PokedexEntry.LevelingRate

Leveling rate.

Returns:


Method PokedexEntry.Print

converts this instance to a String.

Returns:


Type PokedexEntryConverter

Converter that takes the JSON string and constructs a PokedexEntry object for each Pokemon species


Method PokedexEntryConverter.Create(System.Type)

Creates the PokedexEntry

Name Description
objectType: Type of the object.
Returns:

Type PokedexJSON

Stores all the information about Pokemon species, and their stats.


Field PokedexJSON._pokedexJSON

The pokedex json string


Type PokeModBlue

Central place from which the mod's contents are stored. Is a partial class meaning there is another class that I include for release that is not on Git, that class has the gift codes.


Field PokeModBlue.pokeSpawns

pokeSpawns tracks what should currently spawn, allows toggling between vanilla npc's, mod npcs, pokemon npc's only.


Field PokeModBlue.originalSpawnPool

The original spawn pool


Method PokeModBlue.#ctor

Initializes a new instance of the class.


Method PokeModBlue.Load

Loads this instance.


Method PokeModBlue.HotKeyPressed(System.String)

HotKeyPressed, cycles pokeSpawns through the different NPC spawn options

Name Description
name: The name.

Method PokeModBlue.PokedexCommand(System.String[])

The Pokedex command, brings up information about any Pokemon in the full complete National Pokedex

Name Description
args: The arguments.

Method PokeModBlue.HandlePacket(System.IO.BinaryReader,System.Int32)

Handles the custom net packet for multiplayer, things like when a Pokemon is spawned by a client, or what their stats are

Name Description
reader: The reader.
whoAmI: The who am i.

Type PokePlayer

PokePlayer, extends ModPlayer. It represents an extension of a Player instance. Stores fields, much like how the Player class abuses field usage, to keep track of mod-specific information on the player that a ModPlayer instance represents. It also contains hooks to insert code into the Player class.


Field PokePlayer.loaded

Checked/Set when entering the world, used to display a welcome message.


Field PokePlayer.trainerCard

The trainer card. Experimental code commented out below, want to display information about a trainer such as badges might like how the gps works.


Method PokePlayer.PreUpdate

Pre-update hook. This is used to display the welcome message, and to prevent players from reforging pokemon which loses all levels.


Method PokePlayer.SetupStartInventory(System.Collections.Generic.IList{Terraria.Item})

Setups the start inventory. Currently gives a Pokecase, (which gives 1 of 3 starter Pokemon) and 5 Pokeballs.

Name Description
items: The items.

Field PokePlayer.SaveVersion

The save version. This can be incremented if there are major changes, so save data is not lost. E.g if save version is 1 instead of 0, I know that in version 1 I added 3 extra fields, so read them in.


Field PokePlayer.MaxExtraAccessories

The maximum extra accessories, currently set to 6, these excessories are the Pokemon held item slots.


Field PokePlayer.ExtraAccessories

The extra accessories array


Field PokePlayer.numberExtraAccessoriesEnabled

The number extra accessories enabled, currently 0, how many of the extra slots currently enabled.


Method PokePlayer.UpdateEquips(System.Boolean@,System.Boolean@,System.Boolean@)

Updates the players equipped accessories, including the new slots

Name Description
wallSpeedBuff: if set to true [wall speed buff].
tileSpeedBuff: if set to true [tile speed buff].
tileRangeBuff: if set to true [tile range buff].

Method PokePlayer.Initialize

Initializes this instance.


Method PokePlayer.LoadCustomData(System.IO.BinaryReader)

Loads the custom data.

Name Description
reader: The reader.

Method PokePlayer.SaveCustomData(System.IO.BinaryWriter)

Saves the custom data.

Name Description
writer: The writer.

Method PokePlayer.Kill(System.Double,System.Int32,System.Boolean,System.String)

Kills the player, which also now heals their Pokemon back to full health

Name Description
damage: The damage.
hitDirection: The hit direction.
pvp: if set to true [PVP].
deathText: The death text.

Type PokeWorld

PokeWorld, extends ModWorld. Stores fields to keep track of mod-specific information on the world. It also contains hooks to insert code into the world generation process.


Method PokeWorld.PostUpdate

Post-Update hook. Used to debug what information the server knows, essentially nothing, only the item owner actually saves and loads the stats of the item so there is no central authoritative server for item information, so I cannot ask the server to tell everyone the stats of the pokemon, and only the server is allowed to send info


Clone this wiki locally