config stuff to config folder

This commit is contained in:
Llywelwyn 2023-08-23 01:31:02 +01:00
parent 705a6bb1fb
commit 424bf43ed5
12 changed files with 20 additions and 15 deletions

View file

@ -1,5 +1,5 @@
#[rustfmt::skip]
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.

24
src/config/messages.rs Normal file
View file

@ -0,0 +1,24 @@
pub const NOCHARGES_WREST: &str = "You wrest one last charge from the worn-out wand.";
pub const NOCHARGES_DIDNOTHING: &str = "The wand does nothing.";
pub const IDENTIFY_ALL: &str = "You feel attuned to your belongings!";
pub const IDENTIFY_ALL_BLESSED: &str = "Divine favour reveals all";
pub const REMOVECURSE: &str = "You feel a weight lifted!";
pub const REMOVECURSE_BLESSED: &str = "You feel righteous";
pub const REMOVECURSE_BLESSED_FAILED: &str = "You feel righteous! But nothing happened.";
pub const DAMAGE_PLAYER_HIT: &str = "are hit!";
pub const DAMAGE_ITEM_HIT: &str = "is ruined!";
pub const DAMAGE_OTHER_HIT: &str = "is hit!";
pub const HEAL_PLAYER_HIT: &str = "recover some vigour.";
pub const HEAL_PLAYER_HIT_BLESSED: &str = "You feel great";
pub const HEAL_OTHER_HIT: &str = "is rejuvenated!";
pub const MAGICMAP: &str = "You recall your surroundings!";
pub const MAGICMAP_CURSED: &str = "... but forget where you last were";
pub const NUTRITION: &str = "You eat the";
pub const NUTRITION_CURSED: &str = "Blech! Rotten";
pub const NUTRITION_BLESSED: &str = "Delicious";

View file

@ -1,3 +1,8 @@
pub mod entity;
pub mod colours;
pub mod visuals;
pub mod glyphs;
pub mod messages;
pub const SHOW_MAPGEN: bool = false;
pub const LOG_SPAWNING: bool = true;
pub const LOG_TICKS: bool = false;

View file

@ -3,8 +3,12 @@ pub const MAX_DARKENING: f32 = 0.3;
pub const START_DARKEN_AT_N_TILES: f32 = 9.0;
pub const MAX_DARKEN_AT_N_TILES: f32 = 12.0;
pub const BLOODSTAIN_COLOUR: (u8, u8, u8) = (153, 0, 0);
pub const SHORT_PARTICLE_LIFETIME: f32 = 100.0;
pub const DEFAULT_PARTICLE_LIFETIME: f32 = 200.0;
pub const LONG_PARTICLE_LIFETIME: f32 = 300.0;
// THEMES
pub const BLOODSTAIN_COLOUR: (u8, u8, u8) = (153, 0, 0);
// DEFAULT THEME
pub const DEFAULT_BG_COLOUR: (u8, u8, u8) = (29, 50, 50);
pub const WALL_COLOUR: (u8, u8, u8) = (229, 191, 94);
@ -23,6 +27,5 @@ pub const SAND_COLOUR: (u8, u8, u8) = (70, 70, 21);
pub const SHALLOW_WATER_COLOUR: (u8, u8, u8) = (24, 47, 99);
pub const DEEP_WATER_COLOUR: (u8, u8, u8) = (18, 33, 63);
pub const BARS_COLOUR: (u8, u8, u8) = (100, 100, 100);
// FOREST THEME
pub const FOREST_WALL_COLOUR: (u8, u8, u8) = (0, 153, 0);