wrote basic building stuff, need to impliment more in the player.

This commit is contained in:
2026-01-12 11:36:21 -07:00
parent 6e914467ed
commit eb161e0f2e
14 changed files with 815 additions and 175 deletions
+2 -1
View File
@@ -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