Class: YumemoireStats::GlobalStats
- Inherits:
-
Object
- Object
- YumemoireStats::GlobalStats
- Defined in:
- lib/YumemoireFramework.rb
Class Method Summary collapse
Class Method Details
.assign_metrics ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/YumemoireFramework.rb', line 56 def self.assign_metrics ########################################################################################## # Global variables that effect gameplay. # ########################################################################################## # Standard Operations $stalemates = 0 # Keeps track of how many stalemates $player_struck = 0 # Keeps track of how many times player hit the enemy. $enemy_struck = 0 # Keeps track of how many times enemy hit the player. # Current Lunar Phase $current_phase = 0 # File.read("lib/data/lunar_calender/current_phase.txt").strip.to_i # 0 ## Amount of days in a year. $current_day = 0 $lunar_ticks = 30 # One allows you to always maintain a certain maximum reset hp. The other can be altered. $true_reset_hp = File.read("lib/player_stats/true_reset_hp.txt").strip.to_i $reset_hp = File.read("lib/player_stats/reset_hp.txt").strip.to_i # Standard base stats $personal_demon_metric = 0 # File.read("lib/data/user/personal_demon_metric.txt").strip.to_i $player_healing_rate = 4 # File.read("lib/player_stats/player_healing_rate.txt").strip.to_i $player_hp = 10 # File.read("lib/player_stats/player_hp.txt").strip.to_i $player_atk = 4 # File.read("lib/player_stats/player_atk.txt").strip.to_i $player_heal = 2 # $player_healing_rate $enemy_hp = 10 $enemy_atk = 2 $enemy_heal = 4 # Resets the player's HP $true_hp_reset = 10 $reset_hp = 10 end |