Template:ShipDataDocumentation

Revision as of 23:48, 21 February 2015 by >Ckwng

This is a module containing the data for {{{1}}}.

Ship Data Format

This module should return a table, which contains other tables for each form of the ship. The table for the basic form should be under the key "", or the empty string. Remodels should be under the suffix of that remodel, like "Kai" or "Kai Ni".

For example,

local Ooyodo = {
    [""] = {
        ...
    },
    ["Kai"] = {
        ...
    },
}

return Ooyodo

Ship Form Data Format

The table for each form should contain a number of key value pairs that describe the ship.

_name

String. The name of the ship.

If unknown, omit or set to nil.

_rarity

Integer. A number from 1-8 indicating the rarity of the ship. Refer to api_backs.

If unknown, omit or set to nil.

_id

Integer. The id of the ship as shown in the Ship Library. Refer to api_sortno.

However, if this ship shares a slot in the ship list with another ship, api_sortno may not match the id it is listed under in the Ship Library. In this case use the Ship Library id.

If unknown, omit or set to nil.

_true_id

Integer. The true id of the ship. If the Ship Library id does not match the api_sortno, the api_sortno should be recorded as the _true_id.

If unknown, omit or set to nil.

_card

String. The name of the card image on Kancolle Wiki. Omit "File:" from the image.

If unknown, omit or set to nil.

_japanese_name

STring. The japanese name of the ship. Refer to api_name.

If unknown, omit or set to nil.

reading

String. The furigana for the name of the ship. Refer to api_yomi.

For ships that have multiple names, api_yomi may contain the readings for all of the names and will require editing.

If unknown, omit or set to nil.

_class

String. The class of the ship.

Module:_class will be loaded to provide data on the ship class.

If unknown, omit or set to nil.

_type

Integer. The type of the ship. A number from 1-21. Refer to api_stype.

If unknown, omit or set to nil.

_hp

Integer. The base hp of the ship.

If unknown, omit or set to nil.

_hp_max

Integer. The max hp of the ship.

If unknown, omit or set to nil.

_firepower

Integer. The base firepower of the ship.

If unknown, omit or set to nil.

_firepower_max

Integer. The max firepower of the ship.

If unknown, omit or set to nil.

_firepower_mod

Integer. The amount of firepower the ship grants through Modernization.

If unknown, omit or set to nil.

_armor

Integer. The base armor of the ship.

If unknown, omit or set to nil.

_armor_max

Integer. The max armor of the ship.

If unknown, omit or set to nil.

_armor_mod

Integer. The amount of armor the ship grants through Modernization.

If unknown, omit or set to nil.

_torpedo

Integer. The base torpedo of the ship.

If unknown, omit or set to nil.

_torpedo_max

Integer. The max torpedo of the ship.

If unknown, omit or set to nil.

_torpedo_mod

Integer. The amount of torpedo the ship grants through Modernization.

If unknown, omit or set to nil.

_evasion

Integer. The base evasion of the ship.

If unknown, omit or set to nil.

_evasion_max

Integer. The max evasion of the ship.

If unknown, omit or set to nil.

_aa

Integer. The base AA of the ship.

If unknown, omit or set to nil.

_aa_max

Integer. The max AA of the ship.

If unknown, omit or set to nil.

_aa_mod

Integer. The amount of AA the ship grants through Modernization.

If unknown, omit or set to nil.

_asw

Integer. The base ASW of the ship.

If unknown, omit or set to nil.

_asw_max

Integer. The max ASW of the ship.

If unknown, omit or set to nil.

_speed

Integer. The speed of the ship.

If unknown, omit or set to nil.

_los

Integer. The base LOS of the ship.

If unknown, omit or set to nil.

_los_max

Integer. The max LOS of the ship.

If unknown, omit or set to nil.

_range

Integer. The range of the ship.

If unknown, omit or set to nil.

_luck

Integer. The base luck of the ship.

If unknown, omit or set to nil.

_luck_max

Integer. The max luck of the ship.

If unknown, omit or set to nil.

_luck_mod

Integer. The amount of luck the ship grants through Modernization.

If unknown, omit or set to nil.

_buildable

Boolean. Whether or not this ship is buildable.

If unknown, omit or set to nil.

_build_time

Integer. The amount of minutes it takes to build the ship.

If unknown, omit or set to nil.

_fuel

Integer. The max amount of fuel consumed.

If unknown, omit or set to nil.

_ammo

Integer. The max amount of ammo consumed.

If unknown, omit or set to nil.

_scrap_fuel

Integer. The amount of fuel returned when the ship is scrapped.

If unknown, omit or set to nil.

_scrap_ammo

Integer. The amount of ammo returned when the ship is scrapped.

If unknown, omit or set to nil.

_scrap_steel

Integer. The amount of steel returned when the ship is scrapped.

If unknown, omit or set to nil.

_scrap_baux

Integer. The amount of bauxite returned when the ship is scrapped.

If unknown, omit or set to nil.

_equipment

Table. A table containing other tables that represent equipment slots.

If unknown, omit or set to nil.

Equipment Slot

Table. A table representing an equipment slot.

equipment

String. The name of the equipment in the slot.

If no equipment is equipped, set to false.

If unknown, omit or set to nil.

size

String. The size of the slot.

If unknown, omit or set to nil.