mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
Changes Kor requested #1
This commit is contained in:
@@ -595,14 +595,20 @@
|
||||
new /obj/item/ammo_casing/shotgun/beanbag(src)
|
||||
new /obj/item/ammo_casing/shotgun/beanbag(src)
|
||||
|
||||
#define NODESIGN "None"
|
||||
#define NANOTRASEN "NanotrasenStandard"
|
||||
#define SYNDI "SyndiSnacks"
|
||||
#define HEART "Heart"
|
||||
#define SMILE "SmileyFace"
|
||||
|
||||
/obj/item/weapon/storage/box/papersack
|
||||
name = "paper sack"
|
||||
desc = "A sack neatly crafted out of paper."
|
||||
icon_state = "paperbag"
|
||||
item_state = "paperbag"
|
||||
icon_state = "paperbag_None"
|
||||
item_state = "paperbag_None"
|
||||
burn_state = FLAMMABLE
|
||||
foldable = null
|
||||
var/design = 0 /* 0 = No design, 1 = Nanotrasen Standard, 2 = Syndisnacks, 3 = Heart, 4 = Smiley Face */
|
||||
var/design = NODESIGN
|
||||
|
||||
/obj/item/weapon/storage/box/papersack/update_icon()
|
||||
if(contents.len == 0)
|
||||
@@ -615,46 +621,46 @@
|
||||
if(contents.len)
|
||||
user << "<span class='warning'>You can't modify this [src] with items still inside!</span>"
|
||||
return
|
||||
var/list/designs = list("None", "Nanotrasen Standard", "SyndiSnacks", "Heart", "Smiley Face", "Cancel")
|
||||
var/switchDesign = input("Select a Design:", "Paper Sack Design", designs[design + 1]) in designs
|
||||
var/list/designs = list(NODESIGN, NANOTRASEN, SYNDI, HEART, SMILE, "Cancel")
|
||||
var/switchDesign = input("Select a Design:", "Paper Sack Design", designs[1]) in designs
|
||||
if(get_dist(usr, src) > 1)
|
||||
usr << "<span class='warning'>You have moved too far away!</span>"
|
||||
return
|
||||
design = designs.Find(switchDesign) - 1
|
||||
if(design < 5)
|
||||
usr << "<span class='notice'>You make some modifications to the [src] using your pen.</span>"
|
||||
switch(design)
|
||||
if(0)
|
||||
icon_state = "paperbag"
|
||||
item_state = "paperbag"
|
||||
var/choice = designs.Find(switchDesign)
|
||||
if(design == designs[choice] || designs[choice] == "Cancel")
|
||||
return 0
|
||||
usr << "<span class='notice'>You make some modifications to the [src] using your pen.</span>"
|
||||
design = designs[choice]
|
||||
icon_state = "paperbag_[design]"
|
||||
item_state = "paperbag_[design]"
|
||||
switch(designs[choice])
|
||||
if(NODESIGN)
|
||||
desc = "A sack neatly crafted out of paper."
|
||||
if(1)
|
||||
icon_state = "paperbag_nt"
|
||||
item_state = "paperbag_nt"
|
||||
desc = "A Nanotrasen standard paper lunch sack for loyal employees on the go."
|
||||
if(2)
|
||||
icon_state = "paperbag_syndi"
|
||||
item_state = "paperbag_syndi"
|
||||
desc = "The design on this paper sack is a remnant of the secrative 'SydiSnacks' program."
|
||||
if(3)
|
||||
icon_state = "paperbag_heart"
|
||||
item_state = "paperbag_heart"
|
||||
if(NANOTRASEN)
|
||||
desc = "A standard Nanotrasen paper lunch sack for loyal employees on the go."
|
||||
if(SYNDI)
|
||||
desc = "The design on this paper sack is a remnant of the secrative 'SyndieSnacks' program."
|
||||
if(HEART)
|
||||
desc = "A paper sack with a heart etched onto the side."
|
||||
if(4)
|
||||
icon_state = "paperbag_smile"
|
||||
item_state = "paperbag_smile"
|
||||
if(SMILE)
|
||||
desc = "A paper sack with a crude smile etched onto the side."
|
||||
return 0
|
||||
else if(W.is_sharp())
|
||||
if(!contents.len)
|
||||
if(item_state == "paperbag")
|
||||
if(item_state == "paperbag_None")
|
||||
user.show_message("<span class='notice'>You cut eyeholes into the [src].</span>", 1)
|
||||
new /obj/item/clothing/head/papersack(user.loc)
|
||||
qdel(src)
|
||||
return 0
|
||||
else if(item_state == "paperbag_smile")
|
||||
else if(item_state == "paperbag_SmileyFace")
|
||||
user.show_message("<span class='notice'>You cut eyeholes into the [src] and modify the design.</span>", 1)
|
||||
new /obj/item/clothing/head/papersack/smiley(user.loc)
|
||||
qdel(src)
|
||||
return 0
|
||||
return ..()
|
||||
|
||||
#undef NODESIGN
|
||||
#undef NANOTRASEN
|
||||
#undef SYNDI
|
||||
#undef HEART
|
||||
#undef SMILE
|
||||
|
||||
Reference in New Issue
Block a user