mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 09:31:13 +00:00
AIs now have a 50% chance to actually get the sender correct if they intercept a PDA message. Moved Paint and DNAInjectors into their own files edit_player renamed to show_player_panel Cleaned up the grille code a bit git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2007 316c924e-a436-60f5-8080-3fe189b3f50e
100 lines
2.3 KiB
Plaintext
100 lines
2.3 KiB
Plaintext
var/global/list/cached_icons = list()
|
|
|
|
/obj/item/weapon/paint
|
|
name = "Paint Can"
|
|
desc = "Used to recolor floors and walls. Can not be removed by the janitor."
|
|
icon = 'items.dmi'
|
|
icon_state = "paint_neutral"
|
|
var/color = "neutral"
|
|
item_state = "paintcan"
|
|
w_class = 3.0
|
|
|
|
/obj/item/weapon/paint/red
|
|
name = "Red paint"
|
|
color = "FF0000"
|
|
icon_state = "paint_red"
|
|
|
|
/obj/item/weapon/paint/green
|
|
name = "Green paint"
|
|
color = "00FF00"
|
|
icon_state = "paint_green"
|
|
|
|
/obj/item/weapon/paint/blue
|
|
name = "Blue paint"
|
|
color = "0000FF"
|
|
icon_state = "paint_blue"
|
|
|
|
/obj/item/weapon/paint/yellow
|
|
name = "Yellow paint"
|
|
color = "FFFF00"
|
|
icon_state = "paint_yellow"
|
|
|
|
/obj/item/weapon/paint/violet //no icon
|
|
name = "Violet paint"
|
|
color = "FF00FF"
|
|
icon_state = "paint_neutral"
|
|
|
|
/obj/item/weapon/paint/black
|
|
name = "Black paint"
|
|
color = "333333"
|
|
icon_state = "paint_black"
|
|
|
|
/obj/item/weapon/paint/white
|
|
name = "White paint"
|
|
color = "FFFFFF"
|
|
icon_state = "paint_white"
|
|
|
|
|
|
/obj/item/weapon/paint/anycolor
|
|
name = "Any color"
|
|
icon_state = "paint_neutral"
|
|
|
|
attack_self(mob/user as mob)
|
|
var/t1 = input(user, "Please select a color:", "Locking Computer", null) in list( "red", "blue", "green", "yellow", "black", "white")
|
|
if ((user.equipped() != src || user.stat || user.restrained()))
|
|
return
|
|
switch(t1)
|
|
if("red")
|
|
color = "FF0000"
|
|
if("blue")
|
|
color = "0000FF"
|
|
if("green")
|
|
color = "00FF00"
|
|
if("yellow")
|
|
color = "FFFF00"
|
|
/*
|
|
if("violet")
|
|
color = "FF00FF"
|
|
*/
|
|
if("white")
|
|
color = "FFFFFF"
|
|
if("black")
|
|
color = "333333"
|
|
icon_state = "paint_[t1]"
|
|
add_fingerprint(user)
|
|
return
|
|
|
|
|
|
/obj/item/weapon/paint/afterattack(turf/target, mob/user as mob)
|
|
if(!istype(target) || istype(target, /turf/space))
|
|
return
|
|
var/ind = "[initial(target.icon)][color]"
|
|
if(!cached_icons[ind])
|
|
var/icon/overlay = new/icon(initial(target.icon))
|
|
overlay.Blend("#[color]",ICON_MULTIPLY)
|
|
overlay.SetIntensity(1.4)
|
|
target.icon = overlay
|
|
cached_icons[ind] = target.icon
|
|
else
|
|
target.icon = cached_icons[ind]
|
|
return
|
|
|
|
/obj/item/weapon/paint/paint_remover
|
|
name = "Paint remover"
|
|
icon_state = "paint_neutral"
|
|
|
|
afterattack(turf/target, mob/user as mob)
|
|
if(istype(target) && target.icon != initial(target.icon))
|
|
target.icon = initial(target.icon)
|
|
return
|