mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 10:02:28 +00:00
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:
@@ -567,10 +567,10 @@
|
||||
"/obj/item/clothing/head/collectable/xenom",
|
||||
"/obj/item/clothing/head/collectable/xenom",
|
||||
"/obj/item/clothing/head/collectable/petehat")
|
||||
name = "Collectable Hat Crate!"
|
||||
name = "Collectable hat crate!"
|
||||
cost = 200
|
||||
containertype = "/obj/structure/closet/crate/hat"
|
||||
containername = "Collectable Hats Crate! Brought to you by Bass.inc!"
|
||||
containername = "Collectable hats crate! Brought to you by Bass.inc!"
|
||||
|
||||
/datum/supply_packs/hats/New()
|
||||
var/list/tempContains = list()
|
||||
@@ -580,19 +580,32 @@
|
||||
..()
|
||||
|
||||
|
||||
/datum/supply_packs/contraband
|
||||
/datum/supply_packs/poster
|
||||
contains = list("/obj/item/weapon/contraband/poster",) //We randomly pick 5 items from this list through the constructor, look below
|
||||
name = "Contraband Crate"
|
||||
name = "Poster crate"
|
||||
cost = 30
|
||||
containertype = "/obj/structure/closet/crate/contraband"
|
||||
containername = "Contraband crate"
|
||||
containertype = "/obj/structure/closet/crate/poster"
|
||||
containername = "Poster crate"
|
||||
contraband = 1
|
||||
|
||||
/datum/supply_packs/contraband/New()
|
||||
/datum/supply_packs/poster/New()
|
||||
var/list/tempContains = list()
|
||||
for(var/i = 0,i<5,i++)
|
||||
tempContains += pick(contains)
|
||||
src.contains = tempContains
|
||||
..()
|
||||
|
||||
/datum/supply_packs/cigarettes
|
||||
contains = list("/obj/item/weapon/cigpacket/dromedaryco",
|
||||
"/obj/item/weapon/cigpacket/dromedaryco",
|
||||
"/obj/item/weapon/cigpacket/dromedaryco",
|
||||
"/obj/item/weapon/cigpacket/dromedaryco",
|
||||
"/obj/item/weapon/cigpacket/dromedaryco",
|
||||
"/obj/item/weapon/cigpacket/dromedaryco",)
|
||||
name = "DromedaryCo cigarettes crate"
|
||||
cost = 15
|
||||
containertype = "/obj/structure/closet/crate/cigarettes"
|
||||
containername = "DromedaryCo cigarettes crate"
|
||||
contraband = 1
|
||||
|
||||
//SUPPLY PACKS
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user