aboutsummaryrefslogtreecommitdiff
path: root/system.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-11-12 01:35:58 -0800
committer1029chris <1029chris@gmail.com>2016-11-12 01:35:58 -0800
commit06153021393c736a3e1a15f388d5d8dca6844748 (patch)
tree04e477c5a545f5abacc5d23e42c89fb798efcd3e /system.lua
parentb804ec761520ca4663db55b81caef0e773f81805 (diff)
Fixed some bugs, Z can now be used to see next message
Diffstat (limited to 'system.lua')
-rw-r--r--system.lua13
1 files changed, 10 insertions, 3 deletions
diff --git a/system.lua b/system.lua
index dd0423d..2d3f7ee 100644
--- a/system.lua
+++ b/system.lua
@@ -13,9 +13,16 @@ function updateSystem(dt)
end
if v1.complete == true and v2.start == false and v2.complete == false then
v2.startTime = v2.startTime + dt
- if v2.startTime >= 20 then
- v2.start = true
- addPopup(false, sys.w/2-300, sys.h/2-200, 600, 400, 1, false, true)
+ if virus2Lose == 0 then
+ if v2.startTime >= 20 then
+ v2.start = true
+ addPopup(false, sys.w/2-300, sys.h/2-200, 600, 400, 1, false, true)
+ end
+ elseif virus2Lose ~= 0 then
+ if v2.startTime >= 3 then
+ v2.start = true
+ addPopup(false, sys.w/2-300, sys.h/2-200, 600, 400, 1, false, true)
+ end
end
if v2.startTime >= v2.startPopups and v2.start == false then
v2.startPopups = v2.startPopups + math.random(2,10)