Skip to content

Commit

Permalink
Keep both references to the game's version in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
RunningDroid committed May 24, 2023
1 parent c535c79 commit 58966c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion objects/modules/AboutModule.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ AboutModule = Object:extend()
function AboutModule:new(console, y)
self.console = console
self.y = y
local gameVersion = require('version')

self.console:addLine(0.02, '')
self.console:addLine(0.04, '$BYTEPATH% version 1.0-release')
self.console:addLine(0.04, '$BYTEPATH% version ' .. gameVersion .. '-release')
self.console:addLine(0.06, 'The $BYTEPATH% test has been designed to test $[BYTE]-24% PSYON AI systems.')
self.console:addLine(0.08, 'If you are reading this then you are an instance of such a system.')
self.console:addLine(0.10, 'Your objective is to escape this terminal.')
Expand Down
4 changes: 3 additions & 1 deletion objects/modules/EscapeModule.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ function EscapeModule:new(console, y)
end)

else
local gameVersion = require('version')

self.console:addLine(0.02, '')
self.console:addLine(0.04, '$BYTEPATH% version 1.0-release')
self.console:addLine(0.04, '$BYTEPATH% version ' .. gameVersion .. '-release')
self.console:addLine(0.06, 'The $BYTEPATH% test has been designed to test $[BYTE]-24% PSYON AI systems.')
self.console:addLine(0.08, 'If you are reading this then you are an instance of such a system.')
self.console:addLine(0.10, 'Your objective is to escape this terminal.')
Expand Down
1 change: 1 addition & 0 deletions version.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return '1.0.1'

0 comments on commit 58966c7

Please sign in to comment.