aboutsummaryrefslogtreecommitdiff
path: root/virus2.lua
diff options
context:
space:
mode:
Diffstat (limited to 'virus2.lua')
-rw-r--r--virus2.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/virus2.lua b/virus2.lua
index ce2726c..317c8e4 100644
--- a/virus2.lua
+++ b/virus2.lua
@@ -322,6 +322,8 @@ function drawVirusFight2()
if v1.explodeEndFrame >= 20 then
v2.start = false
if v2.c.health == -20 then
+ local prevSave = love.filesystem.read("savegame.txt")
+ love.filesystem.write("savegame.txt", prevSave .. "v2.complete = true;virus2Lose = " .. virus2Lose .. ";")
scene = 1
win[4].w = 200
antivirus.status = "Virus Defeated"