char creation to config
This commit is contained in:
parent
424bf43ed5
commit
15e8ae13d0
9 changed files with 82 additions and 46 deletions
26
src/config/char_create.rs
Normal file
26
src/config/char_create.rs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
// --- GUI ---
|
||||
pub const ANCESTRY_INFO_HEADER: &str = "Your ancestry grants...";
|
||||
pub const CLASS_INFO_HEADER: &str = "Your class grants...";
|
||||
// --- ANCESTRY RENDERABLES ---
|
||||
pub const ELF_GLYPH: char = '@';
|
||||
pub const ELF_COLOUR: (u8, u8, u8) = (0, 255, 0);
|
||||
pub const DWARF_GLYPH: char = 'h';
|
||||
pub const DWARF_COLOUR: (u8, u8, u8) = (255, 0, 0);
|
||||
pub const CATFOLK_GLYPH: char = '@';
|
||||
pub const CATFOLK_COLOUR: (u8, u8, u8) = (200, 200, 255);
|
||||
// --- ANCESTRY BONUSES ---
|
||||
pub const ELF_SPEED_BONUS: i32 = 1;
|
||||
pub const ELF_TELEPATH_RANGE: i32 = 6;
|
||||
pub const DWARF_DEFENCE_MOD: i32 = 1;
|
||||
pub const CATFOLK_SPEED_BONUS: i32 = 2;
|
||||
// --- CLASS STARTING ITEMS ---
|
||||
pub const FIGHTER_STARTING_FOOD: &str = "1d2+1";
|
||||
pub const FIGHTER_STARTING_WEAPON: &str = "equip_shortsword";
|
||||
pub const FIGHTER_STARTING_ARMOUR: &str = "equip_body_ringmail";
|
||||
pub const FIGHTER_STARTING_SHIELD: &str = "equip_mediumshield";
|
||||
pub const ROGUE_STARTING_FOOD: &str = "1d2+2";
|
||||
pub const WIZARD_STARTING_FOOD: &str = "1d2+1";
|
||||
pub const WIZARD_MAX_SCROLL_LVL: i32 = 3;
|
||||
pub const WIZARD_SCROLL_AMOUNT: &str = "1d3";
|
||||
pub const WIZARD_POTION_AMOUNT: &str = "1d3-1";
|
||||
pub const VILLAGER_STARTING_FOOD: &str = "1d3+2";
|
||||
|
|
@ -1,5 +1,12 @@
|
|||
pub const DEFAULT_VIEWSHED_STANDARD: i32 = 16; // Standard viewshed radius for almost all entities.
|
||||
pub const CARRY_CAPACITY_PER_STRENGTH: i32 = 8;
|
||||
|
||||
pub const NORMAL_SPEED: i32 = 12; // Normal speed for almost all entities.
|
||||
pub const TURN_COST_MULTIPLIER: i32 = 4; // How many ticks per turn for an entity with NORMAL_SPEED.
|
||||
pub const DEFAULT_VIEWSHED_STANDARD: i32 = 16; // Standard viewshed radius for almost all entities.
|
||||
pub const CARRY_CAPACITY_PER_STRENGTH: i32 = 8; // How much weight can be carried per point of strength.
|
||||
pub const NORMAL_SPEED: i32 = 12; // Normal speed for almost all entities.
|
||||
pub const TURN_COST_MULTIPLIER: i32 = 4; // How many ticks for NORMAL_SPEED to get a turn.
|
||||
pub const ATTR_BONUS_0: i32 = 10; // At this value, the attribute bonus is 0.
|
||||
pub const ATTR_NEEDED_PER_POINT: i32 = 2; // How many points +- ATTR_BONUS_0 are needed per +- 1 bonus.
|
||||
pub const STANDARD_HIT_DIE: i32 = 8; // Standard hit die used for rolling HP.
|
||||
pub const STANDARD_HIT_DIE_0: i32 = 4; // Standard hit die used for rolling HP for level 0.
|
||||
pub const STANDARD_MANA_DIE: i32 = 4; // Standard mana die used for rolling mana.
|
||||
pub const MINIMUM_MANA: i32 = 0; // The minimum mana a monster can have.
|
||||
pub const MINIMUM_MANA_PLAYER: i32 = 1; // The minimum mana a player can have.
|
||||
pub const STANDARD_BAC: i32 = 10; // Standard BASE AC.
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ pub mod entity;
|
|||
pub mod visuals;
|
||||
pub mod glyphs;
|
||||
pub mod messages;
|
||||
pub mod char_create;
|
||||
|
||||
pub const SHOW_MAPGEN: bool = false;
|
||||
pub const LOG_SPAWNING: bool = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue