This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Constantinople | |
# Global variables for battle engines | |
$luck_factor = 0.20 | |
$theodosian_walls = 15_000 | |
$ottoman_army = 200_000 | |
$eastern_roman_army = 15_000 | |
$city_pop = 50_000 | |
$western_reinforcements | |
$wall_damage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require './replgame_mod_v2.rb' | |
include Constantinople | |
game_intro | |
game_play |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Constantinople | |
# Global variables for battle engines | |
# The battle engine methods had to be nested in their respective sections so | |
# the randomizer will throw up a different number each time | |
$luck_factor = 0.20 | |
$theodosian_walls = 15_000 | |
$ottoman_army = 200_000 | |
$eastern_roman_army = 15_000 | |
$city_pop = 50_000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configure colors, if available. | |
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then | |
c_reset='\[\e[0m\]' | |
c_user='\[\e[0;32m\]' | |
c_path='\[\e[1;34m\]' | |
c_git_clean='\[\e[0;37m\]' | |
c_git_staged='\[\e[0;32m\]' | |
c_git_unstaged='\[\e[0;31m\]' | |
else | |
c_reset= |