Skip to content

Commit 58966c7

Browse files
committed
Keep both references to the game's version in sync
1 parent c535c79 commit 58966c7

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

objects/modules/AboutModule.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ AboutModule = Object:extend()
33
function AboutModule:new(console, y)
44
self.console = console
55
self.y = y
6+
local gameVersion = require('version')
67

78
self.console:addLine(0.02, '')
8-
self.console:addLine(0.04, '$BYTEPATH% version 1.0-release')
9+
self.console:addLine(0.04, '$BYTEPATH% version ' .. gameVersion .. '-release')
910
self.console:addLine(0.06, 'The $BYTEPATH% test has been designed to test $[BYTE]-24% PSYON AI systems.')
1011
self.console:addLine(0.08, 'If you are reading this then you are an instance of such a system.')
1112
self.console:addLine(0.10, 'Your objective is to escape this terminal.')

objects/modules/EscapeModule.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ function EscapeModule:new(console, y)
103103
end)
104104

105105
else
106+
local gameVersion = require('version')
107+
106108
self.console:addLine(0.02, '')
107-
self.console:addLine(0.04, '$BYTEPATH% version 1.0-release')
109+
self.console:addLine(0.04, '$BYTEPATH% version ' .. gameVersion .. '-release')
108110
self.console:addLine(0.06, 'The $BYTEPATH% test has been designed to test $[BYTE]-24% PSYON AI systems.')
109111
self.console:addLine(0.08, 'If you are reading this then you are an instance of such a system.')
110112
self.console:addLine(0.10, 'Your objective is to escape this terminal.')

version.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
return '1.0.1'

0 commit comments

Comments
 (0)