Back to Inindo

Enumerations

These enumerations are a bit useless as the data can be looked up from tables in the ROM but for completeness sake I'll include them here. They do ease use where you're viewing the structures in a debugger.For example the debugger can then print "oak_staff" in place of 0x08.

character_type_t

The ROM lacks an identified character type/subclass table or associated strings.

enum class character_type_t : u08
{
	hero = 0,
	iga,
	female_iga,
	koga,
	female_koga,
	negoro,
	fuma,
	mendicant = 16,
	sohei,
	hermit,
	sage,
	sorcerer = 32,
	magician,
	mystic,
	samurai = 48,
	ronin,
	swordsman,
};

ai_command_t

The AI command table is in the ROM data in indexed.c.c7.ai_actions. This is a string_table_t format table and contains only the action name strings.

This type is used in the SRAM data as part of the character_status_t::ai_status_t bitset.

enum class ai_command_t : u08
{
	move,
	attack,
	flee,
	seek_work,
	work,
	train,
	wait,
	meet,
};

province_id_t

The province table is in the ROM data in indexed.data at 0x14008 and contains 30 entries.

enum class province_id_t : u08
{
	mutsu,
	dewa,
	rikuchu,
	rikuzen,
	hitachi,
	echigo,
	kozuke,
	sagami,
	boso,
	kai,
	totomi,
	mikawa,
	etchu,
	mino,
	echizen,
	omi,
	ise,
	yamashiro,
	tanba,
	settsu,
	kii,
	harima,
	izumo,
	bitchu,
	aki,
	iyo,
	tosa,
	bungo,
	hizen,
	satsuma,
	none = 255,
};

item_id_t

The item table is in the ROM data in indexed.movl at 0x1c62a and contains 138 entries.

enum class item_id_t : u08
{
	sword = 0,
	wood_sword,
	long_sword,
	great_sword,
	mace,
	ninjato,
	shuriken,
	glaive,
	oak_staff,
	gold_staff,
	wise_staff,
	jo_stick,
	kusarigama,
	long_spear,
	iron_sword,
	yoshi_blade,
	big_glaive,
	steel_blade,
	fire_staff,
	masamune,
	helmet = 20,
	wizard_hat,
	steel_helm,
	iron_helm,
	great_helm,
	iron_hat,
	face_mask,
	hard_hat,
	crown,
	dragon_hat,
	vest = 30,
	cloak,
	ninja_garb,
	sage_robe,
	light_mail,
	chain_mail,
	half_coat,
	iron_vest,
	surplice,
	court_dress,
	cuirass,
	hauberk,
	yoshi_suit,
	iron_mesh,
	full_armor,
	gold_suit,
	sage_mail,
	mage_robe,
	fancy_robe,
	mage_cloak,
	_3_pt_star = 50,
	_8_pt_star,
	shaken,
	short_bow,
	longbow,
	crossbow,
	pistol,
	blowpipe,
	musket,
	arquebus,
	amulet = 60,
	talisman,
	scarab,
	idol,
	wizard_gem,
	mandala,
	energy_sap,
	lion_tail,
	bracelet,
	kirin_bone,
	karamono = 70,
	superblade,
	fire_blade,
	muramasa,
	ninja_rod,
	kusanagi,
	multiblade,
	scimitar,
	stiletto,
	power_rod,
	gold_rod,
	coat,
	metal_hat,
	sceptre,
	war_armor,
	magic_armor,
	iron_mask,
	headdress,
	deer_helm,
	fur_robe,
	face_guard,
	kabuto,
	gem_armor,
	gold_mail,
	heavy_cloak,
	medicine = 95,
	elixir,
	antidote,
	energy_up,
	body_healer,
	fire_bomb,
	smoke_bomb,
	health_food,
	energy_pill,
	tengu_wing,
	explosive,
	sleep_bomb,
	shinobi_key = 107,
	mine_key,
	gate_key,
	dizzy_gas,
	password,
	gold_nugget,
	iron_ore,
	bomb = 114,
	time_piece,
	eel_extract,
	bubble_gum,
	tea_bowl,
	porcelain,
	fire_gem = 120,
	earth_gem,
	sky_gem,
	magic_torch,
	magic_rock,
	odas_diary,
	cloud_stone,
	power_book,
	health_rock = 128,
	ninja_cure,
	resorer,
	antifreeze,
	health_kit,
	zakuro_rock,
	spellblock,
	spider_web,
	tengu_fan,
	dragon_book = 137,
	none = 255,
};