mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
TG: Minor cigarette fixes, and added the DromedaryCo cigarette crate as a new
contraband crate. Also added WJohnston's new rolled up poster sprite. Revision: r3566 Author: petethegoat
This commit is contained in:
@@ -781,10 +781,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!"
|
||||
group = "Clothing"
|
||||
|
||||
/datum/supply_packs/hats/New()
|
||||
@@ -795,20 +795,34 @@
|
||||
..()
|
||||
|
||||
|
||||
/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"
|
||||
group = "ERROR"
|
||||
containertype = "/obj/structure/closet/crate/poster"
|
||||
containername = "Poster crate"
|
||||
contraband = 1
|
||||
group = "Secure Storage"
|
||||
|
||||
/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
|
||||
group = "Secure Storage"
|
||||
|
||||
//SUPPLY PACKS
|
||||
@@ -4,6 +4,7 @@ MATCHES
|
||||
MATCHBOXES
|
||||
CIGARETTES
|
||||
CIGARS
|
||||
SMOKING PIPES
|
||||
CIG PACKET
|
||||
ZIPPO
|
||||
*/
|
||||
@@ -329,7 +330,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"
|
||||
@@ -342,23 +343,23 @@ 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)
|
||||
user.put_in_hand(W)
|
||||
else
|
||||
return ..()
|
||||
src.update_icon()
|
||||
update_icon()
|
||||
return
|
||||
|
||||
/obj/item/weapon/cigpacket/dromedaryco
|
||||
|
||||
@@ -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
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 30 KiB |
Reference in New Issue
Block a user