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.


![notepads](https://github.com/Aurorastation/Aurora.3/assets/31459154/f61015df-c8e3-4656-a6fb-e1c3c6e4cbd9)

![notepads_open](https://github.com/Aurorastation/Aurora.3/assets/31459154/b205c7da-fc0f-4a21-b65c-186aff6ace0c)

![notepads_writing](https://github.com/Aurorastation/Aurora.3/assets/31459154/6efe24b7-b160-40a2-84f7-8b4f6269946d)
This commit is contained in:
CatsinHD
2024-07-27 06:10:06 -04:00
committed by GitHub
parent c03efa6661
commit 61baeb7b9a
5 changed files with 112 additions and 0 deletions

View File

@@ -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

View File

@@ -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."

View File

@@ -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