Browse Source

add default quick tech menu

pull/3/head
Andy Newjack 5 years ago
parent
commit
b8e420fa7b
  1. 27
      src/character/character.rs

27
src/character/character.rs

@ -66,6 +66,29 @@ const DEFAULT_PALETTE_CONFIG: [u8; 0xE8] = [
0, 0, 0, 0
];
const DEFAULT_TECH_MENU: [u8; 40] = [
0x00, 0x00,
0x06, 0x00,
0x03, 0x00,
0x01, 0x00,
0x07, 0x00,
0x04, 0x00,
0x02, 0x00,
0x08, 0x00,
0x05, 0x00,
0x09, 0x00,
0x12, 0x00,
0x0f, 0x00,
0x10, 0x00,
0x11, 0x00,
0x0d, 0x00,
0x0a, 0x00,
0x0b, 0x00,
0x0c, 0x00,
0x0e, 0x00,
0x00, 0x00,
];
#[repr(u32)]
#[derive(Copy, Clone, Hash, PartialEq, Eq)]
pub enum Class {
@ -388,7 +411,9 @@ pub struct FullCharacter {
impl std::default::Default for FullCharacter {
fn default() -> FullCharacter {
FullCharacter::from_bytes(&mut std::io::Cursor::new([0; 0x3998].to_vec())).unwrap()
let mut fc = FullCharacter::from_bytes(&mut std::io::Cursor::new([0; 0x3998].to_vec())).unwrap();
fc.tech_menu = DEFAULT_TECH_MENU;
fc
}
}

Loading…
Cancel
Save