wrote basic building stuff, need to impliment more in the player.
This commit is contained in:
+2
-1
@@ -5,7 +5,7 @@ require 'securerandom'
|
||||
|
||||
# Load the ships into a constant:
|
||||
require 'yaml'
|
||||
SHIP_DATA = File.open('lib/game/ships.yaml', 'r') do |fi|
|
||||
SHIP_DATA = File.open('lib/game/data/ships.yaml', 'r') do |fi|
|
||||
YAML.safe_load(fi.read())
|
||||
end
|
||||
|
||||
@@ -50,6 +50,7 @@ class Ship
|
||||
raise ShipError, "Player needs the building of '#{building_needed}' to build this ship"
|
||||
end
|
||||
end
|
||||
return ship
|
||||
end
|
||||
|
||||
# Teleport the ship to a given position. Really only should be used for admin
|
||||
|
||||
Reference in New Issue
Block a user