From 37e581069ce4b147f00f7fb32ad3bd8d444d3e96 Mon Sep 17 00:00:00 2001 From: 1029chris <1029chris@gmail.com> Date: Sat, 23 Apr 2016 00:30:57 -0700 Subject: Virus now states a virus has been found --- antivirus.lua | 6 +++++- virus1.lua | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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() -- cgit