Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 120 additions & 0 deletions modular_doppler/modular_items/code/stickers.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@

///a parent doppler sticker item so we can populate a doppie sticker pack easily
/obj/item/sticker/doppler
abstract_type = /obj/item/sticker/doppler
icon = 'modular_doppler/modular_items/icons/stickers.dmi'
Comment on lines 3 to 5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cause this is an abstract type that should never be spawned on its own:

Suggested change
/obj/item/sticker/doppler
icon = 'modular_doppler/modular_items/icons/stickers.dmi'
/obj/item/sticker/doppler
abstract_type = /obj/item/sticker/doppler
icon = 'modular_doppler/modular_items/icons/stickers.dmi'


/obj/item/sticker/doppler/dolphin
name = "dolphin sticker"
icon_state = "dolphin"

/obj/item/sticker/doppler/horse
name = "horse sticker"
icon_state = "horse"

/obj/item/sticker/doppler/pride
name = "pride flag sticker"
icon_state = "pride"

/obj/item/sticker/doppler/trans_pride
name = "trans pride flag sticker"
icon_state = "trans_pride"

/obj/item/sticker/doppler/marsian
name = "marsian flag sticker"
icon_state = "marsian"

/obj/item/sticker/doppler/tizira
name = "tiziran flag sticker"
icon_state = "tizira"

/obj/item/sticker/doppler/fourca
name = "4CA sticker"
icon_state = "4ca"

///special doppie sticker pack, these will still appear in normal sticker packs anyway. parent type first.
/obj/item/storage/box/stickers/doppler
abstract_type = /obj/item/storage/box/stickers/doppler
icon = 'modular_doppler/modular_items/icons/stickers.dmi'
///the parent item populates its illustration var from a static list, this var allows us to define a new list
var/list/doppler_pack_labels = list(
"dolphin",
)
/// The base type from which we pick subtypes to spawn.
var/spawned_sticker_basetype

///the parent item populates its illustration var from the aforementioned static list, so we override it
/obj/item/storage/box/stickers/doppler/Initialize(mapload)
if(isnull(illustration))
illustration = pick(doppler_pack_labels)
update_appearance()
. = ..()

///makes our list of doppie stickers, overrides basically the same code from the parent /obj/item/storage/box/stickers
/obj/item/storage/box/stickers/doppler/generate_non_contraband_stickers_list()
var/list/allowed_stickers = list()

for(var/obj/item/sticker/sticker_type as anything in subtypesof(spawned_sticker_basetype))
if(!sticker_type::exclude_from_random)
allowed_stickers += sticker_type

return allowed_stickers

/// PopulateContents() on the parent item uses a static list, meaning the first pack that's spawned into the round decides the sticker pool
/// for every other one. We override this with the same block and a non-static list.

/obj/item/storage/box/stickers/doppler/PopulateContents()
var/list/non_contraband

if(isnull(non_contraband))
non_contraband = generate_non_contraband_stickers_list()

for(var/i in 1 to rand(4, 8))
var/type = pick(non_contraband)

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (gateway_test) / Run Tests (gateway_test; 516)

Gateway Test: /datum/unit_test/create_and_destroy

[10:05:16] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,15) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy): Run() RunUnitTest(/datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (gateway_test) / Run Tests (gateway_test; 516)

Gateway Test: /datum/unit_test/modify_fantasy_variable

[10:03:52] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,15) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): allocate(/obj/item/storage/box/stickers... (/obj/item/storage/box/stickers/doppler)) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): Run() RunUnitTest(/datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Alternate Tests / run (516, 1648, runtimestation) / Run Tests (516.1648; runtimestation; 516)

Runtime Station: /datum/unit_test/create_and_destroy

[10:04:08] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,9) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy): Run() RunUnitTest(/datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Alternate Tests / run (516, 1648, runtimestation) / Run Tests (516.1648; runtimestation; 516)

Runtime Station: /datum/unit_test/modify_fantasy_variable

[10:02:41] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,9) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): allocate(/obj/item/storage/box/stickers... (/obj/item/storage/box/stickers/doppler)) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): Run() RunUnitTest(/datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (nebulastation) / Run Tests (nebulastation; 516)

NebulaStation: /datum/unit_test/create_and_destroy

[10:06:38] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,16) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy): Run() RunUnitTest(/datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (nebulastation) / Run Tests (nebulastation; 516)

NebulaStation: /datum/unit_test/modify_fantasy_variable

[10:04:51] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,16) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): allocate(/obj/item/storage/box/stickers... (/obj/item/storage/box/stickers/doppler)) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): Run() RunUnitTest(/datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (metastation) / Run Tests (metastation; 516)

MetaStation: /datum/unit_test/create_and_destroy

[10:05:15] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,15) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy): Run() RunUnitTest(/datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (metastation) / Run Tests (metastation; 516)

MetaStation: /datum/unit_test/modify_fantasy_variable

[10:03:34] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,15) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): allocate(/obj/item/storage/box/stickers... (/obj/item/storage/box/stickers/doppler)) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): Run() RunUnitTest(/datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (icebox) / Run Tests (icebox; 516)

Ice Box Station: /datum/unit_test/create_and_destroy

[10:04:21] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,8) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy): Run() RunUnitTest(/datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (icebox) / Run Tests (icebox; 516)

Ice Box Station: /datum/unit_test/modify_fantasy_variable

[10:02:46] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,8) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): allocate(/obj/item/storage/box/stickers... (/obj/item/storage/box/stickers/doppler)) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): Run() RunUnitTest(/datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (deltastation) / Run Tests (deltastation; 516)

Delta Station: /datum/unit_test/create_and_destroy

[10:05:38] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,15) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy): Run() RunUnitTest(/datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (deltastation) / Run Tests (deltastation; 516)

Delta Station: /datum/unit_test/modify_fantasy_variable

[10:03:56] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,15) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): allocate(/obj/item/storage/box/stickers... (/obj/item/storage/box/stickers/doppler)) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): Run() RunUnitTest(/datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (runtimestation) / Run Tests (runtimestation; 516)

Runtime Station: /datum/unit_test/create_and_destroy

[10:03:41] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,9) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy): Run() RunUnitTest(/datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (runtimestation) / Run Tests (runtimestation; 516)

Runtime Station: /datum/unit_test/modify_fantasy_variable

[10:02:18] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,9) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): allocate(/obj/item/storage/box/stickers... (/obj/item/storage/box/stickers/doppler)) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): Run() RunUnitTest(/datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (pubbystation) / Run Tests (pubbystation; 516)

Pubby Station: /datum/unit_test/create_and_destroy

[10:01:52] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,15) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy): Run() RunUnitTest(/datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (pubbystation) / Run Tests (pubbystation; 516)

Pubby Station: /datum/unit_test/modify_fantasy_variable

[10:00:35] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,15) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): allocate(/obj/item/storage/box/stickers... (/obj/item/storage/box/stickers/doppler)) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): Run() RunUnitTest(/datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (multiz_debug) / Run Tests (multiz_debug; 516)

MultiZ Debug: /datum/unit_test/create_and_destroy

[10:04:41] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,17) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy): Run() RunUnitTest(/datum/unit_test/create_and_de... (/datum/unit_test/create_and_destroy), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()

Check failure on line 73 in modular_doppler/modular_items/code/stickers.dm

View workflow job for this annotation

GitHub Actions / Integration Tests / run (multiz_debug) / Run Tests (multiz_debug; 516)

MultiZ Debug: /datum/unit_test/modify_fantasy_variable

[10:03:13] Runtime in modular_doppler/modular_items/code/stickers.dm,73: pick() from empty list proc name: PopulateContents (/obj/item/storage/box/stickers/doppler/PopulateContents) src: the sticker pack (/obj/item/storage/box/stickers/doppler) src.loc: the floor (126,126,17) (/turf/open/floor/iron) call stack: the sticker pack (/obj/item/storage/box/stickers/doppler): PopulateContents() the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) the sticker pack (/obj/item/storage/box/stickers/doppler): Initialize(0) Atoms (/datum/controller/subsystem/atoms): InitAtom(the sticker pack (/obj/item/storage/box/stickers/doppler), 0, /list (/list)) the sticker pack (/obj/item/storage/box/stickers/doppler): New(0) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): allocate(/obj/item/storage/box/stickers... (/obj/item/storage/box/stickers/doppler)) /datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable): Run() RunUnitTest(/datum/unit_test/modify_fantas... (/datum/unit_test/modify_fantasy_variable), /list (/list)) RunUnitTests() /datum/callback (/datum/callback): InvokeAsync()
new type(src)

/obj/item/storage/box/stickers/doppler/local
name = "local sector sticker pack"
spawned_sticker_basetype = /obj/item/sticker/doppler

///rhinestones! starting with a parent item for the same purpose as above
/obj/item/sticker/rhinestone
abstract_type = /obj/item/sticker/rhinestone
icon = 'modular_doppler/modular_items/icons/stickers.dmi'

/obj/item/sticker/rhinestone/pink
name = "pink rhinestone"
icon_state = "rhinestone_pink"

/obj/item/sticker/rhinestone/purple
name = "purple rhinestone"
icon_state = "rhinestone_purple"

/obj/item/sticker/rhinestone/red
name = "red rhinestone"
icon_state = "rhinestone_red"

/obj/item/sticker/rhinestone/yellow
name = "yellow rhinestone"
icon_state = "rhinestone_yellow"

/obj/item/sticker/rhinestone/blue
name = "blue rhinestone"
icon_state = "rhinestone_blue"

/obj/item/sticker/rhinestone/green
name = "green rhinestone"
icon_state = "rhinestone_green"

///special boxes for the rhinestones
/obj/item/storage/box/stickers/doppler/rhinestones
name = "rhinestone pack"
doppler_pack_labels = list(
"rhinestone_pink",
"rhinestone_purple",
"rhinestone_red",
"rhinestone_yellow",
"rhinestone_blue",
"rhinestone_green",
)
spawned_sticker_basetype = /obj/item/sticker/rhinestone
Binary file not shown.
8 changes: 8 additions & 0 deletions modular_doppler/modular_vending/code/tg_vendors/games.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
/obj/item/storage/briefcase/secure/wargame_kit = 3,
),
),
list(
"name" = "Art",
"icon" = "palette",
"products" = list(
/obj/item/storage/box/stickers/doppler/local = 5,
/obj/item/storage/box/stickers/doppler/rhinestones = 5,
),
),
list(
"name" = "Hair",
"icon" = "scissors",
Expand Down
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -7350,6 +7350,7 @@
#include "modular_doppler\modular_items\code\shelf.dm"
#include "modular_doppler\modular_items\code\shipchem_overrides.dm"
#include "modular_doppler\modular_items\code\signature_beacon.dm"
#include "modular_doppler\modular_items\code\stickers.dm"
#include "modular_doppler\modular_items\code\summon_beacon.dm"
#include "modular_doppler\modular_items\hyposprays\code\autolathe_designs.dm"
#include "modular_doppler\modular_items\hyposprays\code\hypospray_kits.dm"
Expand Down
Loading