mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-20 03:30:01 +01:00
# 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
274 lines
9.1 KiB
Plaintext
274 lines
9.1 KiB
Plaintext
|
|
/**
|
|
* # Power cell
|
|
*
|
|
* Power cells, used primarily for handheld and portable things. Holds a reasonable amount of power.
|
|
*/
|
|
/obj/item/stock_parts/power_store/cell
|
|
name = "power cell"
|
|
desc = "A rechargeable electrochemical power cell."
|
|
icon = 'icons/obj/machines/cell_charger.dmi'
|
|
icon_state = "cell"
|
|
inhand_icon_state = "cell"
|
|
lefthand_file = 'icons/mob/inhands/items/devices_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/items/devices_righthand.dmi'
|
|
force = 5
|
|
throwforce = 5
|
|
throw_speed = 2
|
|
throw_range = 5
|
|
emp_damage_modifier = 1
|
|
w_class = WEIGHT_CLASS_SMALL
|
|
custom_materials = list(/datum/material/iron=SMALL_MATERIAL_AMOUNT*7, /datum/material/glass=SMALL_MATERIAL_AMOUNT*0.5)
|
|
|
|
/obj/item/stock_parts/power_store/cell/Initialize(mapload)
|
|
. = ..()
|
|
ADD_TRAIT(src, TRAIT_FISHING_BAIT, INNATE_TRAIT)
|
|
ADD_TRAIT(src, TRAIT_POISONOUS_BAIT, INNATE_TRAIT) //bro is fishing using lithium...
|
|
var/static/list/slapcraft_recipe_list = list(/datum/crafting_recipe/battery_match)
|
|
AddElement(
|
|
/datum/element/slapcrafting,\
|
|
slapcraft_recipes = slapcraft_recipe_list,\
|
|
)
|
|
|
|
/obj/item/stock_parts/power_store/cell/grind_results()
|
|
return list(/datum/reagent/lithium = 15, /datum/reagent/iron = 5, /datum/reagent/silicon = 5)
|
|
|
|
/* Cell variants*/
|
|
/obj/item/stock_parts/power_store/cell/empty
|
|
empty = TRUE
|
|
|
|
/obj/item/stock_parts/power_store/cell/crap
|
|
name = "\improper Nanotrasen brand rechargeable AA cell"
|
|
desc = "You can't top the plasma top." //TOTALLY TRADEMARK INFRINGEMENT
|
|
icon_state = "aa_cell"
|
|
maxcharge = STANDARD_CELL_CHARGE * 0.5
|
|
custom_materials = list(/datum/material/glass=SMALL_MATERIAL_AMOUNT*0.4)
|
|
|
|
/obj/item/stock_parts/power_store/cell/crap/Initialize(mapload)
|
|
AddElement(/datum/element/update_icon_blocker)
|
|
return ..()
|
|
|
|
/obj/item/stock_parts/power_store/cell/crap/empty
|
|
empty = TRUE
|
|
|
|
/obj/item/stock_parts/power_store/cell/upgraded
|
|
name = "upgraded power cell"
|
|
desc = "A power cell with a slightly higher capacity than normal!"
|
|
icon_state = "9v_cell"
|
|
maxcharge = STANDARD_CELL_CHARGE * 2.5
|
|
|
|
custom_materials = list(/datum/material/glass=SMALL_MATERIAL_AMOUNT*0.5)
|
|
chargerate = STANDARD_CELL_RATE * 0.5
|
|
|
|
/* BUBBER EDIT REMOVAL BEGIN - New icon in modular_skyrat/modules/aesthetics/cells/cell.dm
|
|
/obj/item/stock_parts/power_store/cell/upgraded/Initialize(mapload)
|
|
AddElement(/datum/element/update_icon_blocker)
|
|
return ..()
|
|
*/// BUBBER EDIT REMOVAL END
|
|
|
|
/obj/item/stock_parts/power_store/cell/upgraded/plus
|
|
name = "upgraded power cell+"
|
|
desc = "A power cell with an even higher capacity than the base model!"
|
|
maxcharge = STANDARD_CELL_CHARGE * 5
|
|
|
|
/obj/item/stock_parts/power_store/cell/secborg
|
|
name = "security borg rechargeable D cell"
|
|
maxcharge = STANDARD_CELL_CHARGE * 0.6
|
|
custom_materials = list(/datum/material/glass=SMALL_MATERIAL_AMOUNT*0.4)
|
|
|
|
/obj/item/stock_parts/power_store/cell/secborg/empty
|
|
empty = TRUE
|
|
|
|
/obj/item/stock_parts/power_store/cell/mini_egun
|
|
name = "miniature energy gun power cell"
|
|
maxcharge = STANDARD_CELL_CHARGE * 0.6
|
|
|
|
/obj/item/stock_parts/power_store/cell/hos_gun
|
|
name = "X-01 multiphase energy gun power cell"
|
|
maxcharge = STANDARD_CELL_CHARGE * 1.2
|
|
|
|
/obj/item/stock_parts/power_store/cell/pulse //200 pulse shots
|
|
name = "pulse rifle power cell"
|
|
emp_damage_modifier = 0.5
|
|
maxcharge = STANDARD_CELL_CHARGE * 40
|
|
chargerate = STANDARD_CELL_RATE * 0.75
|
|
|
|
/obj/item/stock_parts/power_store/cell/pulse/carbine //25 pulse shots
|
|
name = "pulse carbine power cell"
|
|
maxcharge = STANDARD_CELL_CHARGE * 5
|
|
|
|
/obj/item/stock_parts/power_store/cell/pulse/pistol //10 pulse shots
|
|
name = "pulse pistol power cell"
|
|
maxcharge = STANDARD_CELL_CHARGE * 2
|
|
|
|
/obj/item/stock_parts/power_store/cell/laser_pistol
|
|
name = "laser pistol power cell"
|
|
chargerate = STANDARD_CELL_RATE * 0.15
|
|
|
|
/obj/item/stock_parts/power_store/cell/ninja
|
|
name = "black power cell"
|
|
icon_state = "bscell"
|
|
emp_damage_modifier = 3
|
|
maxcharge = STANDARD_CELL_CHARGE * 10
|
|
custom_materials = list(/datum/material/glass=SMALL_MATERIAL_AMOUNT*0.6)
|
|
chargerate = STANDARD_CELL_RATE
|
|
|
|
/obj/item/stock_parts/power_store/cell/high
|
|
name = "high-capacity power cell"
|
|
icon_state = "hcell"
|
|
emp_damage_modifier = 3
|
|
maxcharge = STANDARD_CELL_CHARGE * 10
|
|
custom_materials = list(/datum/material/glass=SMALL_MATERIAL_AMOUNT*0.6)
|
|
chargerate = STANDARD_CELL_RATE * 0.75
|
|
|
|
|
|
/obj/item/stock_parts/power_store/cell/high/empty
|
|
empty = TRUE
|
|
|
|
/obj/item/stock_parts/power_store/cell/super
|
|
name = "super-capacity power cell"
|
|
icon_state = "scell"
|
|
emp_damage_modifier = 5
|
|
maxcharge = STANDARD_CELL_CHARGE * 20
|
|
custom_materials = list(/datum/material/glass=SMALL_MATERIAL_AMOUNT * 3)
|
|
chargerate = STANDARD_CELL_RATE
|
|
|
|
/obj/item/stock_parts/power_store/cell/super/empty
|
|
empty = TRUE
|
|
|
|
/obj/item/stock_parts/power_store/cell/hyper
|
|
name = "hyper-capacity power cell"
|
|
icon_state = "hpcell"
|
|
emp_damage_modifier = 5
|
|
maxcharge = STANDARD_CELL_CHARGE * 30
|
|
custom_materials = list(/datum/material/glass=SMALL_MATERIAL_AMOUNT * 4)
|
|
chargerate = STANDARD_CELL_RATE * 1.5
|
|
|
|
/obj/item/stock_parts/power_store/cell/hyper/empty
|
|
empty = TRUE
|
|
|
|
/obj/item/stock_parts/power_store/cell/bluespace
|
|
name = "bluespace power cell"
|
|
desc = "A rechargeable transdimensional power cell."
|
|
icon_state = "bscell"
|
|
emp_damage_modifier = 5
|
|
maxcharge = STANDARD_CELL_CHARGE * 40
|
|
custom_materials = list(/datum/material/glass=SMALL_MATERIAL_AMOUNT*6)
|
|
chargerate = STANDARD_CELL_RATE * 2
|
|
|
|
/obj/item/stock_parts/power_store/cell/bluespace/empty
|
|
empty = TRUE
|
|
|
|
/obj/item/stock_parts/power_store/cell/infinite
|
|
name = "infinite-capacity power cell"
|
|
icon_state = "icell"
|
|
emp_damage_modifier = 0
|
|
maxcharge = INFINITY //little disappointing if you examine it and it's not huge
|
|
custom_materials = list(/datum/material/glass=HALF_SHEET_MATERIAL_AMOUNT)
|
|
chargerate = INFINITY
|
|
ratingdesc = FALSE
|
|
|
|
/obj/item/stock_parts/power_store/cell/infinite/use(used, force = FALSE)
|
|
return used
|
|
|
|
/obj/item/stock_parts/power_store/cell/infinite/abductor
|
|
name = "void core"
|
|
desc = "An alien power cell that produces energy seemingly out of nowhere."
|
|
icon = 'icons/obj/antags/abductor.dmi'
|
|
icon_state = "cell"
|
|
maxcharge = STANDARD_CELL_CHARGE * 50
|
|
ratingdesc = FALSE
|
|
|
|
/obj/item/stock_parts/power_store/cell/infinite/abductor/Initialize(mapload)
|
|
AddElement(/datum/element/update_icon_blocker)
|
|
return ..()
|
|
|
|
/obj/item/stock_parts/power_store/cell/potato
|
|
name = "potato battery"
|
|
desc = "A rechargeable starch based power cell."
|
|
icon = 'icons/obj/service/hydroponics/harvest.dmi'
|
|
icon_state = "potato"
|
|
maxcharge = STANDARD_CELL_CHARGE * 0.3
|
|
emp_damage_modifier = 0.5 //It's biological, so
|
|
charge_light_type = null
|
|
connector_type = null
|
|
custom_materials = null
|
|
grown_battery = TRUE //it has the overlays for wires
|
|
custom_premium_price = PAYCHECK_CREW
|
|
|
|
/obj/item/stock_parts/power_store/cell/potato/Initialize(mapload, override_maxcharge)
|
|
charge = maxcharge * 0.3
|
|
. = ..()
|
|
|
|
/obj/item/stock_parts/power_store/cell/emproof
|
|
name = "\improper EMP-proof cell"
|
|
desc = "An EMP-proof cell."
|
|
emp_damage_modifier = 0
|
|
maxcharge = STANDARD_CELL_CHARGE * 0.5
|
|
|
|
/obj/item/stock_parts/power_store/cell/emproof/Initialize(mapload)
|
|
AddElement(/datum/element/empprotection, EMP_PROTECT_SELF)
|
|
return ..()
|
|
|
|
/obj/item/stock_parts/power_store/cell/emproof/empty
|
|
empty = TRUE
|
|
|
|
/obj/item/stock_parts/power_store/cell/emproof/corrupt()
|
|
return
|
|
|
|
/obj/item/stock_parts/power_store/cell/emproof/slime
|
|
name = "EMP-proof slime core"
|
|
desc = "A yellow slime core infused with plasma. Its organic nature makes it immune to EMPs."
|
|
icon = 'icons/mob/simple/slimes.dmi'
|
|
icon_state = "yellow-core"
|
|
custom_materials = null
|
|
maxcharge = STANDARD_CELL_CHARGE * 5
|
|
charge_light_type = null
|
|
connector_type = "slimecore"
|
|
|
|
/obj/item/stock_parts/power_store/cell/emergency_light
|
|
name = "miniature power cell"
|
|
desc = "A tiny power cell with a very low power capacity. Used in light fixtures to power them in the event of an outage."
|
|
maxcharge = STANDARD_CELL_CHARGE * 0.12 //Emergency lights use 0.2 W per tick, meaning ~10 minutes of emergency power from a cell
|
|
custom_materials = list(/datum/material/glass = SMALL_MATERIAL_AMOUNT*0.2)
|
|
w_class = WEIGHT_CLASS_TINY
|
|
|
|
/obj/item/stock_parts/power_store/cell/emergency_light/Initialize(mapload)
|
|
. = ..()
|
|
var/area/area = get_area(src)
|
|
if(area)
|
|
if(!area.lightswitch || !area.light_power)
|
|
charge = 0 //For naturally depowered areas, we start with no power
|
|
|
|
/obj/item/stock_parts/power_store/cell/crystal_cell
|
|
name = "crystal power cell"
|
|
desc = "A very high power cell made from crystallized plasma"
|
|
icon_state = "crystal_cell"
|
|
maxcharge = STANDARD_CELL_CHARGE * 50
|
|
chargerate = 0
|
|
charge_light_type = null
|
|
connector_type = "crystal"
|
|
custom_materials = null
|
|
|
|
/obj/item/stock_parts/power_store/cell/crystal_cell/grind_results()
|
|
return null
|
|
|
|
/obj/item/stock_parts/power_store/cell/ethereal
|
|
name = "ahelp it"
|
|
desc = "you sohuldn't see this"
|
|
maxcharge = ETHEREAL_CHARGE_DANGEROUS
|
|
charge = ETHEREAL_CHARGE_FULL
|
|
icon_state = null
|
|
charge_light_type = null
|
|
connector_type = null
|
|
custom_materials = null
|
|
emp_damage_modifier = 0
|
|
abstract_type = /obj/item/stock_parts/power_store/cell/ethereal
|
|
|
|
/obj/item/stock_parts/power_store/cell/ethereal/grind_results()
|
|
return null
|
|
|
|
/obj/item/stock_parts/power_store/cell/ethereal/examine(mob/user)
|
|
. = ..()
|
|
CRASH("[src.type] got examined by [user]")
|