aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-04-23 00:30:57 -0700
committer1029chris <1029chris@gmail.com>2016-04-23 00:30:57 -0700
commit37e581069ce4b147f00f7fb32ad3bd8d444d3e96 (patch)
treed366137e4ae7f303eec2346a0f7d35b0e2c0ce66
parentdcf65f619aa1060d07a2470b067ecde6e02ff928 (diff)
Virus now states a virus has been found
-rw-r--r--antivirus.lua6
-rw-r--r--virus1.lua1
2 files changed, 6 insertions, 1 deletions
diff --git a/antivirus.lua b/antivirus.lua
index 32e3769..32eebbe 100644
--- a/antivirus.lua
+++ b/antivirus.lua
@@ -28,6 +28,10 @@ function updateAntivirus()
if antivirus.prog >= 174 then
antivirus.prog = 174
antivirus.scanning = false
- antivirus.status = "0 Viruses Found"
+ if v1.yes == true then
+ antivirus.status = "VIRUS FOUND!"
+ else
+ antivirus.status = "0 Viruses Found"
+ end
end
end
diff --git a/virus1.lua b/virus1.lua
index 3f1a389..a9a5224 100644
--- a/virus1.lua
+++ b/virus1.lua
@@ -30,6 +30,7 @@ function drawVirusFight1()
win[4].x = sys.w/2-100+7
win[4].y = sys.h/2-75
layer.sentToFront = 4
+ antivirus.scanning = true
end
if v1.c.chat.msgs > 7 then
orderWindows()