mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-17 21:02:15 +00:00
Adds Notepads (#19617)
Adds a colorable notepad to the loadout, alongside a blue and gold SCC variant to the faction section. The notepad functions identically to the journal. Sprites are by me, or modification of the existing journal sprites.   
This commit is contained in:
@@ -743,3 +743,12 @@
|
||||
scc_headwear["SCC woolen hat"] = /obj/item/clothing/head/wool/scc
|
||||
scc_headwear["SCC woolen hat, alt"] = /obj/item/clothing/head/wool/scc/alt
|
||||
gear_tweaks += new /datum/gear_tweak/path(scc_headwear)
|
||||
|
||||
/datum/gear/faction/scc_notepad
|
||||
display_name = "SCC notepad"
|
||||
description = "A notepad for jotting down notes in corporate meetings. This one is navy blue with a gold SCC logo on the front."
|
||||
path = /obj/item/journal/notepad/scc
|
||||
sort_category = "Factions"
|
||||
cost = 1
|
||||
faction = null
|
||||
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION
|
||||
|
||||
@@ -48,6 +48,12 @@
|
||||
path = /obj/item/journal
|
||||
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
|
||||
|
||||
/datum/gear/utility/notepad
|
||||
display_name = "notepad"
|
||||
description = "A notepad for jotting down notes in meetings or interrogations."
|
||||
path = /obj/item/journal/notepad
|
||||
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
|
||||
|
||||
/datum/gear/utility/fountainpen
|
||||
display_name = "fountain pen selection"
|
||||
description = "A selection of fountain pens."
|
||||
|
||||
@@ -105,3 +105,42 @@
|
||||
/obj/item/journal/proc/remove_index(var/obj/item/folder/embedded/E)
|
||||
LAZYREMOVE(indices, E.name)
|
||||
update_icon()
|
||||
|
||||
/obj/item/journal/notepad
|
||||
name = "notepad"
|
||||
desc = "A notepad for jotting down notes in meetings or interrogations."
|
||||
desc_info = "Alt-click this while it's on your person or next to you to open this notepad.\nWhile the notepad is open, use it in hand or use a pen on it to access the contents."
|
||||
icon = 'icons/obj/library.dmi'
|
||||
icon_state = "notepad"
|
||||
item_state = "notepad"
|
||||
color = COLOR_DARK_BROWN
|
||||
update_icon_on_init = TRUE
|
||||
throw_speed = 1
|
||||
throw_range = 5
|
||||
w_class = ITEMSIZE_SMALL
|
||||
attack_verb = list("bashed", "whacked", "educated")
|
||||
drop_sound = 'sound/items/drop/book.ogg'
|
||||
pickup_sound = 'sound/items/pickup/book.ogg'
|
||||
|
||||
/obj/item/journal/notepad/update_icon()
|
||||
ClearOverlays()
|
||||
if(!open)
|
||||
icon_state = "[initial(icon_state)]_closed"
|
||||
AddOverlays(overlay_image(icon, "notepad_paper_closed", flags=RESET_COLOR))
|
||||
else if(LAZYLEN(indices))
|
||||
icon_state = initial(icon_state)
|
||||
AddOverlays(overlay_image(icon, "notepad_writing", flags=RESET_COLOR))
|
||||
else
|
||||
icon_state = initial(icon_state)
|
||||
AddOverlays(overlay_image(icon, "notepad_blank", flags=RESET_COLOR))
|
||||
|
||||
if(closed_desc)
|
||||
desc = open ? initial(desc) + closed_desc : initial(desc)
|
||||
|
||||
/obj/item/journal/notepad/scc
|
||||
name = "scc notepad"
|
||||
desc = "A notepad for jotting down notes in corporate meetings. This one is navy blue with a gold SCC logo on the front."
|
||||
desc_info = "Alt-click this while it's on your person or next to you to open this notepad.\nWhile the notepad is open, use it in hand or use a pen on it to access the contents."
|
||||
icon_state = "notepad_scc"
|
||||
item_state = "notepad_scc"
|
||||
color = COLOR_WHITE
|
||||
|
||||
Reference in New Issue
Block a user