Finished testing and docs for now. Time for new features!
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ class Planet
|
||||
def initialize(random)
|
||||
@random = random
|
||||
@prod_rate = @random.rand
|
||||
@resource = PLANET_PRODUCTION_RESOURCES[(@random.rand * PLANET_PRODUCTION_RESOURCES.length).floor]
|
||||
@resource = PLANET_PRODUCTION_RESOURCES.sample(random: @random)
|
||||
@owner = nil
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user