m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-08-24 22:00:09 -0700
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-08-24 22:00:09 -0700
commit056777e2745704b1e7a5fae390034a6c599bad6b (patch)
treee2d0b9ed5aabb5d610eee5db0d65719c70296e52
parent078bd1abae826efdabf789bcfb4f265e4b20463f (diff)
Set initial xp to 0
-rw-r--r--hex_engine.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/hex_engine.rb b/hex_engine.rb
index cd44d56..3f3dbbc 100644
--- a/hex_engine.rb
+++ b/hex_engine.rb
@@ -11,7 +11,7 @@ class Hex < Engine
@state = hash['state'] || 'play'
@health = (hash['health'] || 6).to_i
@endurance = (hash['endurance'] || 6).to_i
- @xp = (hash['xp'] || 49).to_i
+ @xp = (hash['xp'] || 0).to_i
@level =( hash['level'] || 1).to_i
@keys = (hash['keys'] || 0).to_i
@magic_weapon = (hash['magic_weapon'] || 0).to_i