mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-11 08:06:33 +01:00
00ccf0c6b5
# Conflicts: # .github/CODEOWNERS # .github/workflows/compile_changelogs.yml # .github/workflows/stale.yml # SQL/database_changelog.md # _maps/map_files/CatwalkStation/CatwalkStation_2023.dmm # code/__DEFINES/atom_hud.dm # code/__DEFINES/inventory.dm # code/__DEFINES/mobs.dm # code/__DEFINES/species_clothing_paths.dm # code/__DEFINES/subsystems.dm # code/__DEFINES/surgery.dm # code/__HELPERS/global_lists.dm # code/_globalvars/lists/maintenance_loot.dm # code/_globalvars/traits/_traits.dm # code/controllers/subsystem/minor_mapping.dm # code/controllers/subsystem/processing/quirks.dm # code/controllers/subsystem/shuttle.dm # code/datums/components/palette.dm # code/datums/components/surgery_initiator.dm # code/datums/diseases/advance/advance.dm # code/datums/hud.dm # code/datums/mood.dm # code/datums/mutations/chameleon.dm # code/datums/quirks/negative_quirks/nyctophobia.dm # code/datums/status_effects/debuffs/debuffs.dm # code/datums/status_effects/debuffs/drunk.dm # code/datums/status_effects/debuffs/slime/slime_leech.dm # code/datums/weather/weather.dm # code/game/data_huds.dm # code/game/objects/items.dm # code/game/objects/items/devices/scanners/health_analyzer.dm # code/game/objects/items/frog_statue.dm # code/game/objects/items/rcd/RLD.dm # code/game/objects/items/robot/items/hypo.dm # code/game/objects/items/stacks/medical.dm # code/game/objects/items/stacks/wrap.dm # code/game/objects/items/storage/garment.dm # code/game/objects/items/tools/medical/defib.dm # code/game/objects/items/weaponry.dm # code/game/objects/items/weaponry/melee/misc.dm # code/game/objects/structures/crates_lockers/closets/secure/security.dm # code/game/objects/structures/curtains.dm # code/game/objects/structures/dresser.dm # code/game/objects/structures/girders.dm # code/game/objects/structures/maintenance.dm # code/game/objects/structures/mirror.dm # code/modules/admin/greyscale_modify_menu.dm # code/modules/admin/verbs/light_debug.dm # code/modules/antagonists/ashwalker/ashwalker.dm # code/modules/antagonists/heretic/knowledge/starting_lore.dm # code/modules/antagonists/ninja/ninjaDrainAct.dm # code/modules/art/paintings.dm # code/modules/client/preferences.dm # code/modules/client/verbs/ooc.dm # code/modules/clothing/head/wig.dm # code/modules/events/disease_outbreak.dm # code/modules/holodeck/holo_effect.dm # code/modules/jobs/job_types/head_of_security.dm # code/modules/jobs/job_types/security_officer.dm # code/modules/library/skill_learning/generic_skillchips/point.dm # code/modules/mining/lavaland/ash_flora.dm # code/modules/mining/lavaland/mining_loot/megafauna/ash_drake.dm # code/modules/mob/dead/new_player/new_player.dm # code/modules/mob/living/basic/guardian/guardian.dm # code/modules/mob/living/basic/space_fauna/space_dragon/space_dragon.dm # code/modules/mob/living/carbon/carbon.dm # code/modules/mob/living/carbon/human/human.dm # code/modules/mob/living/carbon/human/human_defines.dm # code/modules/mob/living/carbon/life.dm # code/modules/mob/living/living.dm # code/modules/mob/living/living_defines.dm # code/modules/mob/mob.dm # code/modules/mob_spawn/ghost_roles/mining_roles.dm # code/modules/mod/mod_control.dm # code/modules/mod/modules/modules_general.dm # code/modules/modular_computers/computers/item/computer_ui.dm # code/modules/paperwork/paper.dm # code/modules/paperwork/paperbin.dm # code/modules/power/lighting/light.dm # code/modules/projectiles/guns/energy/kinetic_accelerator.dm # code/modules/projectiles/projectile.dm # code/modules/reagents/chemistry/reagents/drinks/alcohol_reagents.dm # code/modules/reagents/chemistry/reagents/food_reagents.dm # code/modules/reagents/chemistry/reagents/other_reagents.dm # code/modules/reagents/chemistry/reagents/pyrotechnic_reagents.dm # code/modules/research/xenobiology/crossbreeding/_clothing.dm # code/modules/research/xenobiology/crossbreeding/prismatic.dm # code/modules/surgery/advanced/brainwashing.dm # code/modules/surgery/advanced/lobotomy.dm # code/modules/surgery/amputation.dm # code/modules/surgery/blood_filter.dm # code/modules/surgery/bodyparts/_bodyparts.dm # code/modules/surgery/brain_surgery.dm # code/modules/surgery/cavity_implant.dm # code/modules/surgery/coronary_bypass.dm # code/modules/surgery/gastrectomy.dm # code/modules/surgery/healing.dm # code/modules/surgery/limb_augmentation.dm # code/modules/surgery/organ_manipulation.dm # code/modules/surgery/revival.dm # code/modules/surgery/sleeper_protocol.dm # code/modules/surgery/surgery_helpers.dm # code/modules/surgery/surgery_step.dm # code/modules/unit_tests/_unit_tests.dm # code/modules/unit_tests/designs.dm # code/modules/unit_tests/icon_state_worn.dm # code/modules/unit_tests/screenshots/screenshot_antag_icons_cultist.png # code/modules/unit_tests/screenshots/screenshot_antag_icons_headrevolutionary.png # code/modules/unit_tests/screenshots/screenshot_antag_icons_provocateur.png # code/modules/unit_tests/screenshots/screenshot_husk_body.png # code/modules/unit_tests/screenshots/screenshot_husk_body_missing_limbs.png # icons/map_icons/clothing/head/_head.dmi # icons/map_icons/clothing/shoes.dmi # icons/map_icons/items/_item.dmi # icons/mob/huds/hud.dmi # icons/mob/inhands/64x64_lefthand.dmi # icons/mob/inhands/64x64_righthand.dmi # icons/obj/machines/computer.dmi # tgui/packages/tgui/interfaces/OperatingComputer.jsx # tgui/packages/tgui/interfaces/PreferencesMenu/CharacterPreferences/MainPage.tsx # tgui/packages/tgui/interfaces/PreferencesMenu/types.ts # tgui/packages/tgui/interfaces/SurgeryInitiator.tsx # tools/icon_cutter/check.py
94 lines
3.3 KiB
Plaintext
94 lines
3.3 KiB
Plaintext
/// Turns them into a psuedo-wizard costume.
|
|
#define WIZARD_MIMICRY "wizardmimic"
|
|
/// Gives them a cursed sword.
|
|
#define CURSED_SWORDS "swords"
|
|
/// Gives them a blunt that they need to smoke
|
|
#define BIG_FAT_DOOBIE "bigfatdoobie"
|
|
/// Gives them boxing gloves and a luchador mask
|
|
#define BOXING "boxing"
|
|
/// Gives them a chameleon mask
|
|
#define VOICE_MODULATORS "voicemodulators"
|
|
/// Gives them kitty ears and also modifies their gender to FEMALE
|
|
#define CATGIRLS_2015 "catgirls2015"
|
|
|
|
/datum/round_event_control/wizard/cursed_items //fashion disasters
|
|
name = "Cursed Items"
|
|
weight = 3
|
|
typepath = /datum/round_event/wizard/cursed_items
|
|
max_occurrences = 3
|
|
earliest_start = 0 MINUTES
|
|
description = "Gives everyone a cursed item."
|
|
|
|
//Note about adding items to this: Because of how NODROP_1 works if an item spawned to the hands can also be equiped to a slot
|
|
//it will be able to be put into that slot from the hand, but then get stuck there. To avoid this make a new subtype of any
|
|
//item you want to equip to the hand, and set its slots_flags = null. Only items equiped to hands need do this.
|
|
|
|
/datum/round_event/wizard/cursed_items/start()
|
|
var/item_set = pick(
|
|
BIG_FAT_DOOBIE,
|
|
BOXING,
|
|
// CATGIRLS_2015, // SKYRAT EDIT REMOVAL
|
|
CURSED_SWORDS,
|
|
VOICE_MODULATORS,
|
|
WIZARD_MIMICRY,
|
|
)
|
|
var/list/loadout = list()
|
|
var/ruins_spaceworthiness = FALSE
|
|
var/ruins_wizard_loadout = FALSE
|
|
|
|
switch(item_set)
|
|
if(BIG_FAT_DOOBIE)
|
|
loadout += /obj/item/cigarette/rollie/trippy
|
|
ruins_spaceworthiness = TRUE
|
|
if(BOXING)
|
|
loadout += /obj/item/clothing/mask/luchador
|
|
loadout += /obj/item/clothing/gloves/boxing
|
|
ruins_spaceworthiness = TRUE
|
|
if(CATGIRLS_2015)
|
|
loadout += /obj/item/clothing/head/costume/kitty
|
|
ruins_spaceworthiness += TRUE
|
|
ruins_wizard_loadout += TRUE
|
|
if(CURSED_SWORDS)
|
|
loadout += /obj/item/katana/cursed
|
|
if(VOICE_MODULATORS)
|
|
loadout += /obj/item/clothing/mask/chameleon
|
|
if(WIZARD_MIMICRY)
|
|
loadout += /obj/item/clothing/suit/wizrobe
|
|
loadout += /obj/item/clothing/shoes/sandal/magic
|
|
loadout += /obj/item/clothing/head/wizard
|
|
ruins_spaceworthiness = TRUE
|
|
|
|
var/list/mob/living/carbon/human/victims = list()
|
|
|
|
for(var/mob/living/carbon/human/target in GLOB.alive_mob_list)
|
|
if(isspaceturf(target.loc) || !isnull(target.dna.species.outfit_important_for_life) || (ruins_spaceworthiness && !is_station_level(target.z)))
|
|
continue //#savetheminers
|
|
if(ruins_wizard_loadout && IS_WIZARD(target))
|
|
continue
|
|
if(item_set == CATGIRLS_2015) //Wizard code means never having to say you're sorry
|
|
target.gender = FEMALE
|
|
for(var/item_to_equip in loadout)
|
|
var/obj/item/new_item = new item_to_equip
|
|
var/slot_to_equip_to = ITEM_SLOT_HANDS
|
|
if(isclothing(new_item))
|
|
var/obj/item/clothing/clothing_item = new_item
|
|
slot_to_equip_to = clothing_item.slot_flags
|
|
|
|
target.dropItemToGround(target.get_item_by_slot(slot_to_equip_to), TRUE)
|
|
target.equip_to_slot_or_del(new_item, slot_to_equip_to, indirect_action = TRUE)
|
|
ADD_TRAIT(new_item, TRAIT_NODROP, CURSED_ITEM_TRAIT(new_item))
|
|
new_item.item_flags |= DROPDEL
|
|
new_item.name = "cursed " + new_item.name
|
|
|
|
victims += target
|
|
|
|
for(var/mob/living/carbon/human/victim as anything in victims)
|
|
do_smoke(0, victim, victim.loc)
|
|
|
|
#undef BIG_FAT_DOOBIE
|
|
#undef BOXING
|
|
#undef CATGIRLS_2015
|
|
#undef CURSED_SWORDS
|
|
#undef VOICE_MODULATORS
|
|
#undef WIZARD_MIMICRY
|