mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 09:31:13 +00:00
(ANTAG) Adds Revelation Virus
- Adds revelation virus, a program that destroys the hard drive on execution. It also has chance of destroying the computer's power supply and/or battery. - (Added): Simple UI for virus that allows user to rename the program to look like non-malicious one. The virus must be armed first via this UI. Once armed, it will trigger on next execution (even if copied/sent to other system) - Adds extended description to programs, that contains basic information on what the program is doing.
This commit is contained in:
@@ -43,37 +43,4 @@
|
||||
cpu.network_card.identification_string = "Unknown Console"
|
||||
if(cpu)
|
||||
cpu.screen_on = 1
|
||||
cpu.enabled = 1
|
||||
update_icon()
|
||||
|
||||
/*
|
||||
/obj/machinery/modular_computer/console/attackby(var/obj/item/weapon/W as obj, var/mob/user as mob)
|
||||
if(istype(W, /obj/item/weapon/cell)) // Power Cell. Try to insert it into the console, if it doesn't have cell installed.
|
||||
if(!cpu || (stat & (BROKEN|MAINT)))
|
||||
user << "\The [cpu] seems to be broken."
|
||||
return
|
||||
if(cpu.battery)
|
||||
user << "You try to insert \the [W] into \the [cpu], but it't battery slot is occupied."
|
||||
return
|
||||
cpu.battery = W
|
||||
user.drop_from_inventory(W)
|
||||
W.forceMove(src)
|
||||
user << "You insert \the [W] into \the [cpu]'s battery slot."
|
||||
return
|
||||
if(istype(W, /obj/item/weapon/crowbar)) // Crowbar, remove power cell, if it has one.
|
||||
if(!cpu || (stat & (BROKEN|MAINT)))
|
||||
user << "\The [cpu] seems to be broken."
|
||||
return
|
||||
if(!cpu.battery)
|
||||
user << "\The [cpu] doesn't seem to have battery installed."
|
||||
return
|
||||
user << "You begin removing \the [cpu.battery] from \the [cpu]."
|
||||
if(do_after(user, 20))
|
||||
cpu.battery.forceMove(get_turf(src))
|
||||
user << "You crowbar \the [cpu.battery] from \the [cpu]."
|
||||
cpu.battery = null
|
||||
battery_powered = 0
|
||||
power_change()
|
||||
return
|
||||
return ..()
|
||||
*/
|
||||
update_icon()
|
||||
Reference in New Issue
Block a user