mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-27 10:02:12 +00:00
* batch 1 /mob/living/silicon/robot/syndicate /obj/effect/decal/cleanable/blood/old /obj/effect/decal/cleanable/blood/gibs /obj/effect/decal/cleanable/blood/gibs/old /obj/effect/decal/cleanable/ash /obj/effect/decal/cleanable/ash/large /obj/effect/decal/cleanable/greenglow /obj/effect/decal/cleanable/vomit/old /obj/effect/decal/cleanable/shreds /obj/effect/decal/cleanable/oil /obj/effect/decal/cleanable/crayon /obj/effect/decal/cleanable /obj/effect/temp_visual/point * batch 2 /obj/effect/anomaly /mob/living/carbon/monkey/punpun /obj/item/queen_bee/bought /mob/living/simple_animal/hostile/poison/bees /mob/living/carbon/human /area/ai_monitored /area * batch 3 /mob/living/simple_animal/hostile/blob/blobspore /obj/item/spellbook /mob/living/simple_animal/hostile/blob/blobbernaut /mob/camera/blob /obj/structure/noticeboard /obj/structure/piano /obj/item/clothing/head/helmet /obj/item/gun/energy/laser/chameleon * batch 4 /obj/machinery/airalarm /obj/effect/decal/cleanable for reals /obj/item/stack/rods /obj/effect/decal/cleanable/crayon for reals /obj/screen/parallax_layer /obj/item/device/instrument /obj/item/ore /obj/item/coin * batch 5, getting tgstation ready for halloween /obj/machinery/meter/turf /obj/machinery/capture_the_flag /obj/effect/ctf/dead_barricade /obj/structure/firepit /obj/item/clothing/head/helmet/knight /obj/structure/spacevine /obj/effect/hallucination/simple/xeno /obj/effect/hallucination/simple /mob/living/simple_animal/shade/howling_ghost /mob/living/simple_animal/hostile/retaliate/clown/insane /obj/structure/bookcase /mob/camera/aiEye/remote/base_construction /obj/machinery/computer/camera_advanced/base_construction /obj/item/device/wisp_lantern * batch 6 /obj/item/device/warp_cube/red /obj/item/device/shared_storage/red /obj/item/melee/ghost_sword /mob/living/simple_animal/hostile/mining_drone /mob/living/brain /obj/item/device/mmi/posibrain /mob/living/carbon/human/interactive /mob/living/carbon/human/interactive/angry /mob/living/carbon/human/interactive/friendly /mob/living/carbon/human/interactive/greytide /mob/living/carbon/human/interactive/robust /mob/living/carbon/monkey/angry /mob/living/simple_animal/hostile/guardian/assassin /mob/living/simple_animal/hostile/syndicate/mecha_pilot/no_mech /mob/living/simple_animal/hostile/syndicate/mecha_pilot /mob/living/simple_animal/hostile/mimic/crate /mob/living/simple_animal/hostile/mimic/copy * batch 7 /mob/living/simple_animal/hostile/megafauna/colossus /mob/living/simple_animal/hostile/megafauna/bubblegum /mob/living/simple_animal/hostile/asteroid/goldgrub /mob/living/simple_animal/hostile/asteroid/gutlunch/gubbuck /mob/living/simple_animal/hostile/asteroid/hivelordbrood /mob/living/simple_animal/hostile/statue /mob/living/simple_animal/hostile/wizard /obj/machinery/power/smes
167 lines
5.5 KiB
Plaintext
167 lines
5.5 KiB
Plaintext
//copy pasta of the space piano, don't hurt me -Pete
|
|
/obj/item/device/instrument
|
|
name = "generic instrument"
|
|
resistance_flags = FLAMMABLE
|
|
max_integrity = 100
|
|
icon = 'icons/obj/musician.dmi'
|
|
lefthand_file = 'icons/mob/inhands/equipment/instruments_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/equipment/instruments_righthand.dmi'
|
|
var/datum/song/handheld/song
|
|
var/instrumentId = "generic"
|
|
var/instrumentExt = "mid"
|
|
|
|
/obj/item/device/instrument/Initialize()
|
|
. = ..()
|
|
song = new(instrumentId, src, instrumentExt)
|
|
|
|
/obj/item/device/instrument/Destroy()
|
|
qdel(song)
|
|
song = null
|
|
return ..()
|
|
|
|
/obj/item/device/instrument/suicide_act(mob/user)
|
|
user.visible_message("<span class='suicide'>[user] begins to play 'Gloomy Sunday'! It looks like [user.p_theyre()] trying to commit suicide!</span>")
|
|
return (BRUTELOSS)
|
|
|
|
/obj/item/device/instrument/Initialize(mapload)
|
|
. = ..()
|
|
if(mapload)
|
|
song.tempo = song.sanitize_tempo(song.tempo) // tick_lag isn't set when the map is loaded
|
|
|
|
/obj/item/device/instrument/attack_self(mob/user)
|
|
if(!user.IsAdvancedToolUser())
|
|
to_chat(user, "<span class='warning'>You don't have the dexterity to do this!</span>")
|
|
return 1
|
|
interact(user)
|
|
|
|
/obj/item/device/instrument/interact(mob/user)
|
|
if(!user)
|
|
return
|
|
|
|
if(!isliving(user) || user.stat || user.restrained() || user.lying)
|
|
return
|
|
|
|
user.set_machine(src)
|
|
song.interact(user)
|
|
|
|
/obj/item/device/instrument/violin
|
|
name = "space violin"
|
|
desc = "A wooden musical instrument with four strings and a bow. \"The devil went down to space, he was looking for an assistant to grief.\""
|
|
icon_state = "violin"
|
|
item_state = "violin"
|
|
force = 10
|
|
hitsound = "swing_hit"
|
|
instrumentId = "violin"
|
|
|
|
/obj/item/device/instrument/violin/golden
|
|
name = "golden violin"
|
|
desc = "A golden musical instrument with four strings and a bow. \"The devil went down to space, he was looking for an assistant to grief.\""
|
|
icon_state = "golden_violin"
|
|
item_state = "golden_violin"
|
|
resistance_flags = LAVA_PROOF | FIRE_PROOF | ACID_PROOF
|
|
|
|
/obj/item/device/instrument/piano_synth
|
|
name = "synthesizer"
|
|
desc = "An advanced electronic synthesizer that can be used as various instruments."
|
|
icon_state = "synth"
|
|
item_state = "synth"
|
|
instrumentId = "piano"
|
|
instrumentExt = "ogg"
|
|
var/static/list/insTypes = list("accordion" = "mid", "bikehorn" = "ogg", "glockenspiel" = "mid", "guitar" = "ogg", "harmonica" = "mid", "piano" = "ogg", "recorder" = "mid", "saxophone" = "mid", "trombone" = "mid", "violin" = "mid", "xylophone" = "mid") //No eguitar you ear-rapey fuckers.
|
|
actions_types = list(/datum/action/item_action/synthswitch)
|
|
|
|
/obj/item/device/instrument/piano_synth/proc/changeInstrument(name = "piano")
|
|
song.instrumentDir = name
|
|
song.instrumentExt = insTypes[name]
|
|
|
|
/obj/item/device/instrument/guitar
|
|
name = "guitar"
|
|
desc = "It's made of wood and has bronze strings."
|
|
icon_state = "guitar"
|
|
item_state = "guitar"
|
|
instrumentExt = "ogg"
|
|
force = 10
|
|
attack_verb = list("played metal on", "serenaded", "crashed", "smashed")
|
|
hitsound = 'sound/weapons/stringsmash.ogg'
|
|
instrumentId = "guitar"
|
|
|
|
/obj/item/device/instrument/eguitar
|
|
name = "electric guitar"
|
|
desc = "Makes all your shredding needs possible."
|
|
icon_state = "eguitar"
|
|
item_state = "eguitar"
|
|
force = 12
|
|
attack_verb = list("played metal on", "shredded", "crashed", "smashed")
|
|
hitsound = 'sound/weapons/stringsmash.ogg'
|
|
instrumentId = "eguitar"
|
|
instrumentExt = "ogg"
|
|
|
|
/obj/item/device/instrument/glockenspiel
|
|
name = "glockenspiel"
|
|
desc = "Smooth metal bars perfect for any marching band."
|
|
icon_state = "glockenspiel"
|
|
item_state = "glockenspiel"
|
|
instrumentId = "glockenspiel"
|
|
|
|
/obj/item/device/instrument/accordion
|
|
name = "accordion"
|
|
desc = "Pun-Pun not included."
|
|
icon_state = "accordion"
|
|
item_state = "accordion"
|
|
instrumentId = "accordion"
|
|
|
|
/obj/item/device/instrument/saxophone
|
|
name = "saxophone"
|
|
desc = "This soothing sound will be sure to leave your audience in tears."
|
|
icon_state = "saxophone"
|
|
item_state = "saxophone"
|
|
instrumentId = "saxophone"
|
|
|
|
/obj/item/device/instrument/trombone
|
|
name = "trombone"
|
|
desc = "How can any pool table ever hope to compete?"
|
|
icon_state = "trombone"
|
|
item_state = "trombone"
|
|
instrumentId = "trombone"
|
|
|
|
/obj/item/device/instrument/recorder
|
|
name = "recorder"
|
|
desc = "Just like in school, playing ability and all."
|
|
icon_state = "recorder"
|
|
item_state = "recorder"
|
|
instrumentId = "recorder"
|
|
|
|
/obj/item/device/instrument/harmonica
|
|
name = "harmonica"
|
|
desc = "For when you get a bad case of the space blues."
|
|
icon_state = "harmonica"
|
|
item_state = "harmonica"
|
|
instrumentId = "harmonica"
|
|
slot_flags = SLOT_MASK
|
|
force = 5
|
|
w_class = WEIGHT_CLASS_SMALL
|
|
actions_types = list(/datum/action/item_action/instrument)
|
|
|
|
/obj/item/device/instrument/harmonica/speechModification(message)
|
|
if(song.playing && ismob(loc))
|
|
to_chat(loc, "<span class='warning'>You stop playing the harmonica to talk...</span>")
|
|
song.playing = FALSE
|
|
return message
|
|
|
|
/obj/item/device/instrument/bikehorn
|
|
name = "gilded bike horn"
|
|
desc = "An exquisitely decorated bike horn, capable of honking in a variety of notes."
|
|
icon_state = "bike_horn"
|
|
item_state = "bike_horn"
|
|
lefthand_file = 'icons/mob/inhands/equipment/horns_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/equipment/horns_righthand.dmi'
|
|
attack_verb = list("beautifully honks")
|
|
instrumentId = "bikehorn"
|
|
instrumentExt = "ogg"
|
|
w_class = WEIGHT_CLASS_TINY
|
|
force = 0
|
|
throw_speed = 3
|
|
throw_range = 15
|
|
hitsound = 'sound/items/bikehorn.ogg'
|
|
|