-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Interface for the PokedexEntry, not current used
This class is the base class for all Players summonable Pokemon.
Gets and caches the result of the pokemon's first type
Gets and caches the result of the pokemon's second type
gets the multiplier for damage based on the attacking move type, and the types of the defending pokemon
Gets and caches the result of the pokemon's first type
Gets and caches the result of the pokemon's second type
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
The pokedex
Initializes the class.
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
PokedexEntry. Object representation of the species Pokedex entry, storing all their stats accessible at runtime.
Gets or sets the personality
Value: The personality.
Gets or sets the nature
Value: The nature.
Gets or sets the hp.
Value: The hp.
Gets or sets the atk.
Value: The atk.
Gets or sets the def.
Value: The def.
Gets or sets the sp a.
Value: The sp a.
Gets or sets the sp d.
Value: The sp d.
Gets or sets the spe.
Value: The spe.
Gets or sets the stat total.
Value: The stat total.
Gets or sets the type i.
Value: The type i.
Gets or sets the type ii.
Value: The type ii.
Gets or sets the tier.
Value: The tier.
Gets or sets the ability i.
Value: The ability i.
Gets or sets the ability ii.
Value: The ability ii.
Gets or sets the hidden ability.
Value: The hidden ability.
Gets or sets the mass.
Value: The mass.
Gets or sets the lk gk.
Value: The lk gk.
Gets or sets the ev worth.
Value: The ev worth.
Gets or sets the expv.
Value: The expv.
Gets or sets the color.
Value: The color.
Gets or sets the hatch.
Value: The hatch.
Gets or sets the gender.
Value: The gender.
Gets or sets the egg group i.
Value: The egg group i.
Gets or sets the egg group ii.
Value: The egg group ii.
Gets or sets the catch.
Value: The catch.
Gets or sets the exp.
Value: The exp.
Gets or sets the evolve level.
Value: The evolve level.
Gets or sets the evolve identifier.
Value: The evolve identifier.
Gets or sets the Johto Pokedex number.
Value: The Johto Pokedex number.
Gets or sets the Hoenn Pokedex number.
Value: The Hoenn Pokedex number.
Gets or sets the Sinoh Pokedex number.
Value: The Sinoh Pokedex number.
Gets or sets the Unova Pokedex number.
Value: The Unova Pokedex number.
Gets or sets the Pokemon species name.
Value: The Pokemon species name.
Leveling rate.
Returns:
converts this instance to a String.
Returns:
Converter that takes the JSON string and constructs a PokedexEntry object for each Pokemon species
Creates the PokedexEntry
Name | Description |
---|---|
objectType: | Type of the object. |
Returns: |
Stores all the information about Pokemon species, and their stats.
The pokedex json string
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.
pokeSpawns tracks what should currently spawn, allows toggling between vanilla npc's, mod npcs, pokemon npc's only.
The original spawn pool
Initializes a new instance of the class.
Loads this instance.
HotKeyPressed, cycles pokeSpawns through the different NPC spawn options
Name | Description |
---|---|
name: | The name. |
The Pokedex command, brings up information about any Pokemon in the full complete National Pokedex
Name | Description |
---|---|
args: | The arguments. |
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. |
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.
Checked/Set when entering the world, used to display a welcome message.
The trainer card. Experimental code commented out below, want to display information about a trainer such as badges might like how the gps works.
Pre-update hook. This is used to display the welcome message, and to prevent players from reforging pokemon which loses all levels.
Setups the start inventory. Currently gives a Pokecase, (which gives 1 of 3 starter Pokemon) and 5 Pokeballs.
Name | Description |
---|---|
items: | The items. |
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.
The maximum extra accessories, currently set to 6, these excessories are the Pokemon held item slots.
The extra accessories array
The number extra accessories enabled, currently 0, how many of the extra slots currently enabled.
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]. |
Initializes this instance.
Loads the custom data.
Name | Description |
---|---|
reader: | The reader. |
Saves the custom data.
Name | Description |
---|---|
writer: | The writer. |
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. |
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.
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