Minor cigarette fixes, and added the DromedaryCo cigarette crate as a new contraband crate.

Also added WJohnston's new rolled up poster sprite.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3566 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
petethegoat@gmail.com
2012-05-07 16:45:08 +00:00
parent e89e7acdb3
commit 6e2c65183b
4 changed files with 38 additions and 16 deletions
+12 -3
View File
@@ -38,9 +38,18 @@
icon_opened = "crateopen"
icon_closed = "crate"
/obj/structure/closet/crate/contraband
name = "Contraband crate"
desc = "A random assortment of items manufactured by providers NOT listed under Nanotrasen's whitelist."
/obj/structure/closet/crate/poster
name = "Poster crate"
desc = "A random assortment of posters manufactured by providers NOT listed under Nanotrasen's whitelist."
icon = 'storage.dmi'
icon_state = "crate"
density = 1
icon_opened = "crateopen"
icon_closed = "crate"
/obj/structure/closet/crate/cigarettes
name = "DromedaryCo cigarettes crate"
desc = "A crate of cigarettes manufactured by the notorious DromedaryCo company."
icon = 'storage.dmi'
icon_state = "crate"
density = 1
@@ -321,7 +321,7 @@ ZIPPO
//CIG PACK//
////////////
/obj/item/weapon/cigpacket
name = "Cigarette packet"
name = "cigarette packet"
desc = "The most popular brand of Space Cigarettes, sponsors of the Space Olympics."
icon = 'cigarettes.dmi'
icon_state = "cigpacket"
@@ -334,18 +334,18 @@ ZIPPO
update_icon()
src.icon_state = text("cigpacket[]", src.cigcount)
src.desc = text("There are [] cigs\s left!", src.cigcount)
icon_state = "[initial(icon_state)][cigcount]"
desc = "There's [cigcount] cig\s left!"
return
attack_hand(mob/user as mob)
if(user.r_hand == src || user.l_hand == src)
if(src.cigcount == 0)
if(cigcount == 0)
user << "\red You're out of cigs, shit! How you gonna get through the rest of the day..."
return
else
src.cigcount--
cigcount--
var/obj/item/clothing/mask/cigarette/W = new /obj/item/clothing/mask/cigarette(user)
if(user.hand)
user.l_hand = W
@@ -354,7 +354,7 @@ ZIPPO
W.layer = 20
else
return ..()
src.update_icon()
update_icon()
return
/obj/item/weapon/cigpacket/dromedaryco