Computer sprites (#3622)

Constructing a computer now makes sense sprite-wise.
Also edited some fluff text to be more accurate during construction.
This commit is contained in:
AgentWhatever
2017-10-18 12:20:45 -05:00
committed by Lohikar
parent 30d92571cf
commit 58b9ab85a0
6 changed files with 13 additions and 7 deletions
@@ -4,7 +4,7 @@
density = 1
anchored = 0
name = "computer frame"
icon = 'icons/obj/stock_parts.dmi'
icon = 'icons/obj/computer.dmi'
icon_state = "0"
var/state = 0
var/obj/item/weapon/circuitboard/circuit = null
@@ -50,7 +50,7 @@
user << "<span class='warning'>This frame does not accept circuit boards of this type!</span>"
if(isscrewdriver(P) && circuit)
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
user << "<span class='notice'>You screw the circuit board into place.</span>"
user << "<span class='notice'>You screw the circuit board into place and screw the drawer shut.</span>"
src.state = 2
src.icon_state = "2"
if(iscrowbar(P) && circuit)
@@ -93,22 +93,22 @@
user << "<span class='warning'>You need two sheets of glass to put in the glass panel.</span>"
return
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
user << "<span class='notice'>You start to put in the glass panel.</span>"
user << "<span class='notice'>You start to put in the glass keyboard.</span>"
if(do_after(user, 20) && state == 3)
if (G.use(2))
user << "<span class='notice'>You put in the glass panel.</span>"
user << "<span class='notice'>You put in the glass keyboard.</span>"
src.state = 4
src.icon_state = "4"
if(4)
if(iscrowbar(P))
playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1)
user << "<span class='notice'>You remove the glass panel.</span>"
user << "<span class='notice'>You remove the glass keyboard.</span>"
src.state = 3
src.icon_state = "3"
new /obj/item/stack/material/glass( src.loc, 2 )
if(isscrewdriver(P))
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
user << "<span class='notice'>You connect the monitor.</span>"
user << "<span class='notice'>You connect the glass keyboard.</span>"
var/B = new src.circuit.build_path ( src.loc )
src.circuit.construct(B)
qdel(src)
+1 -1
View File
@@ -108,7 +108,7 @@
A.state = 3
A.icon_state = "3"
else
user << "<span class='notice'>You disconnect the monitor.</span>"
user << "<span class='notice'>You disconnect the glass keyboard panel.</span>"
A.state = 4
A.icon_state = "4"
M.deconstruct(src)
@@ -0,0 +1,6 @@
author: AgentWhatever
delete-after: True
changes:
- imageadd: "Constructing a console or computer now makes sense visually"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB