Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post dmi reorg fixes #7782

Merged
merged 30 commits into from
Dec 18, 2024
Merged
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ sound/music/walkman/*/*.ogg
sound/music/walkman/*.txt
icons/custom/*
maps/**/backup
maps/templates.dm
*.before
__pycache__
test_environment.txt
Expand Down
2 changes: 1 addition & 1 deletion code/__HELPERS/icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ world
A.overlays.Remove(src)

/mob/proc/flick_heal_overlay(time, color = "#00FF00") //used for warden and queen healing
var/image/I = image('icons/mob/mob.dmi', src, "heal_overlay")
var/image/I = image('icons/mob/do_afters.dmi', src, "heal_overlay")
switch(icon_size)
if(48)
I.pixel_x = 8
Expand Down
4 changes: 4 additions & 0 deletions code/game/objects/items/devices/portable_vendor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
name = "\improper Automated Storage Briefcase"
desc = "A suitcase-sized automated storage and retrieval system. Designed to efficiently store and selectively dispense small items."
icon = 'icons/obj/items/storage/briefcases.dmi'
item_icons = list(
WEAR_L_HAND = 'icons/mob/humans/onmob/inhands/equipment/briefcases_lefthand.dmi',
WEAR_R_HAND = 'icons/mob/humans/onmob/inhands/equipment/briefcases_righthand.dmi'
)
icon_state = "secure"
flags_atom = FPRINT|CONDUCT
force = 8
Expand Down
16 changes: 2 additions & 14 deletions code/game/objects/items/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
icon_state = "wooden_pole"
item_state = "wooden_pole"
item_icons = list(
WEAR_L_HAND = 'icons/mob/humans/onmob/inhands/weapons/melee/energy_lefthand.dmi',
WEAR_R_HAND = 'icons/mob/humans/onmob/inhands/weapons/melee/energy_righthand.dmi'
WEAR_BACK = 'icons/mob/humans/onmob/clothing/back/holster.dmi',
WEAR_WAIST = 'icons/mob/humans/onmob/clothing/belts/scabbards.dmi',
)
force = 20
attack_speed = 1.5 SECONDS
Expand Down Expand Up @@ -144,14 +144,6 @@
/obj/item/weapon/pole/fancy_cane/this_is_a_knife/katana
stored_item = new /obj/item/weapon/sword/katana

// IN SHOTGUNS.DM!!

/*obj/item/weapon/pole/fancy_cane/gun
name = "fancy cane"
desc = "An ebony cane with a fancy, seemingly-golden tip. Feels hollow to the touch."
force = 15 // hollow
*/

/obj/item/research//Makes testing much less of a pain -Sieve
name = "research"
icon = 'icons/obj/items/stock_parts.dmi'
Expand All @@ -166,10 +158,6 @@
throwforce = 2
w_class = SIZE_LARGE





/obj/item/evidencebag
name = "evidence bag"
desc = "An empty evidence bag."
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/props/helmetgarb.dm
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@
name = "compass"
desc = "It always faces north. Are you sure it is not broken?"
icon = 'icons/obj/items/tools.dmi'
icon_state = "compass"
item_icons = list(
WEAR_AS_GARB = 'icons/mob/humans/onmob/clothing/helmet_garb/misc.dmi',
)
Expand Down
3 changes: 3 additions & 0 deletions code/game/objects/items/reagent_containers/food/snacks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3276,6 +3276,7 @@
playsound(src.loc,'sound/effects/pageturn2.ogg', 15, 1)
to_chat(user, SPAN_NOTICE("You pull off the wrapping from the squishy burrito!"))
package = 0
new /obj/item/trash/buritto (user.loc)
icon_state = "open-burrito"

/obj/item/reagent_container/food/snacks/packaged_burger
Expand All @@ -3300,6 +3301,7 @@
playsound(src.loc,'sound/effects/pageturn2.ogg', 15, 1)
to_chat(user, SPAN_NOTICE("You pull off the wrapping from the squishy hamburger!"))
package = 0
new /obj/item/trash/burger (user.loc)
icon_state = "hburger"
item_state = "burger"

Expand All @@ -3324,6 +3326,7 @@
playsound(src.loc,'sound/effects/pageturn2.ogg', 15, 1)
to_chat(user, SPAN_NOTICE("You pull off the wrapping from the squishy hotdog!"))
package = 0
new /obj/item/trash/hotdog (user.loc)
icon_state = "open-hotdog"

/obj/item/reagent_container/food/snacks/upp
Expand Down
4 changes: 2 additions & 2 deletions code/game/objects/items/stacks/cable_coil.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
name = "cable coil"
icon = 'icons/obj/structures/machinery/power.dmi'
item_icons = list(
WEAR_L_HAND = 'icons/mob/humans/onmob/inhands/items_by_map/snow_lefthand.dmi',
WEAR_R_HAND = 'icons/mob/humans/onmob/inhands/items_by_map/snow_righthand.dmi'
WEAR_L_HAND = 'icons/mob/humans/onmob/inhands/equipment/tools_lefthand.dmi',
WEAR_R_HAND = 'icons/mob/humans/onmob/inhands/equipment/tools_righthand.dmi',
)
icon_state = "coil"
amount = MAXCOIL
Expand Down
5 changes: 3 additions & 2 deletions code/game/objects/items/stacks/sheets/mineral.dm
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ GLOBAL_LIST_INIT(iron_recipes, list ( \
icon_state = "sheet-sandstone"
throw_speed = SPEED_VERY_FAST
throw_range = 5

amount_sprites = TRUE
sheettype = "sandstone"
stack_id = "sandstone"

Expand All @@ -118,6 +118,7 @@ GLOBAL_LIST_INIT(iron_recipes, list ( \
desc = "Sandstone is sand cemented into stone. A common building material for primitive civilizations, but it can still make a good enough wall. This one has strange runes embued into the brick."
singular_name = "runed sandstone brick"
icon_state = "sheet-runedsandstone"
amount_sprites = FALSE
black_market_value = 15

/obj/item/stack/sheet/mineral/sandstone/runed/large_stack
Expand Down Expand Up @@ -190,7 +191,7 @@ GLOBAL_LIST_INIT(iron_recipes, list ( \
singular_name = "plastic sheet"
icon_state = "sheet-plastic"
matter = list("plastic" = 2000)

amount_sprites = TRUE
perunit = 2000
stack_id = "plastic"
black_market_value = 0
Expand Down
23 changes: 2 additions & 21 deletions code/game/objects/items/storage/belt.dm
Blundir marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,7 @@
w_class = SIZE_LARGE
storage_slots = 12
storage_flags = STORAGE_FLAGS_DEFAULT|STORAGE_USING_DRAWING_METHOD|STORAGE_ALLOW_QUICKDRAW
flags_atom = FPRINT // has gamemode skin
max_w_class = SIZE_SMALL
max_storage_space = 48
can_hold = list(
Expand Down Expand Up @@ -1143,12 +1144,7 @@
/obj/item/ammo_magazine/pistol,
)
cant_hold = list(
/obj/item/weapon/gun/revolver/m44/custom/pkd_special, // HONKed currently
/obj/item/weapon/gun/revolver/m44/custom/pkd_special/k2049, // HONKed currently
/obj/item/weapon/gun/revolver/m44/custom/pkd_special/l_series, // HONKed currently
/obj/item/weapon/gun/pistol/kt42, // HONKed currently
/obj/item/weapon/gun/pistol/holdout, // HONKed currently
/obj/item/weapon/gun/pistol/holdout/flashlight, // HONKed currently
/obj/item/weapon/gun/pistol/auto9, // HONKed currently
/obj/item/weapon/gun/pistol/chimp, // HONKed currently
/obj/item/weapon/gun/pistol/skorpion, // HONKed currently
Expand Down Expand Up @@ -1239,7 +1235,7 @@
*/
playsound(src, drawSound, 7, TRUE)
var/image/gun_underlay = image('icons/obj/items/clothing/belts/holstered_guns.dmi', current_gun.base_gun_icon)
if(gun_has_gamemode_skin & current_gun.map_specific_decoration)
if(gun_has_gamemode_skin && current_gun.map_specific_decoration)
switch(SSmapping.configs[GROUND_MAP].camouflage_type)
if("snow")
gun_underlay = image('icons/obj/items/clothing/belts/holstered_guns.dmi', "s_" + current_gun.base_gun_icon)
Expand Down Expand Up @@ -1360,13 +1356,7 @@
cant_hold = list(
/obj/item/weapon/gun/pistol/smart,
/obj/item/ammo_magazine/pistol/smart,
/obj/item/weapon/gun/revolver/m44/custom/pkd_special, // HONKed currently
/obj/item/weapon/gun/revolver/m44/custom/pkd_special/k2049, // HONKed currently
/obj/item/weapon/gun/revolver/m44/custom/pkd_special/l_series, // HONKed currently
/obj/item/weapon/gun/pistol/kt42, // HONKed currently
/obj/item/weapon/gun/pistol/holdout, // HONKed currently
/obj/item/weapon/gun/pistol/holdout/flashlight, // HONKed currently
/obj/item/weapon/gun/pistol/es4, // HONKed currently
/obj/item/weapon/gun/pistol/auto9, // HONKed currently
/obj/item/weapon/gun/pistol/chimp, // HONKed currently
/obj/item/weapon/gun/pistol/skorpion, // HONKed currently
Expand Down Expand Up @@ -1525,9 +1515,6 @@
/obj/item/weapon/gun/smg/m39,
/obj/item/ammo_magazine/smg,
)
cant_hold = list (
/obj/item/weapon/gun/smg/m39/elite, // HONKed currently
)
holster_slots = list(
"1" = list(
"icon_x" = -11,
Expand Down Expand Up @@ -1960,13 +1947,7 @@
var/list/bad_guns = list(
/obj/item/weapon/gun/pistol/m4a3/training,
/obj/item/weapon/gun/pistol/mod88/training,
/obj/item/weapon/gun/revolver/m44/custom/pkd_special, // HONKed currently
/obj/item/weapon/gun/revolver/m44/custom/pkd_special/k2049, // HONKed currently
/obj/item/weapon/gun/revolver/m44/custom/pkd_special/l_series, // HONKed currently
/obj/item/weapon/gun/pistol/kt42, // HONKed currently
/obj/item/weapon/gun/pistol/holdout, // HONKed currently
/obj/item/weapon/gun/pistol/holdout/flashlight, // HONKed currently
/obj/item/weapon/gun/pistol/es4, // HONKed currently
/obj/item/weapon/gun/pistol/auto9, // HONKed currently
/obj/item/weapon/gun/pistol/chimp, // HONKed currently
/obj/item/weapon/gun/pistol/skorpion, // HONKed currently
Expand Down
4 changes: 4 additions & 0 deletions code/game/objects/items/storage/briefcase.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
name = "briefcase"
desc = "It's made of AUTHENTIC faux-leather and has a price-tag still attached. Its owner must be a real professional."
icon = 'icons/obj/items/storage/briefcases.dmi'
item_icons = list(
WEAR_L_HAND = 'icons/mob/humans/onmob/inhands/equipment/briefcases_lefthand.dmi',
WEAR_R_HAND = 'icons/mob/humans/onmob/inhands/equipment/briefcases_righthand.dmi'
)
icon_state = "briefcase"
item_state = "briefcase"
flags_atom = FPRINT|CONDUCT|NO_GAMEMODE_SKIN
Expand Down
9 changes: 8 additions & 1 deletion code/game/objects/items/storage/large_holster.dm
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@
name = "\improper katana scabbard"
desc = "A large, vibrantly colored katana scabbard used to carry a Japanese sword. It can be strapped to the back or worn at the belt. Because of the sturdy wood casing of the scabbard, it makes an okay defensive weapon in a pinch."
icon_state = "katana_holster"
item_icons = list(
WEAR_BACK = 'icons/mob/humans/onmob/clothing/back/holster.dmi',
WEAR_WAIST = 'icons/mob/humans/onmob/clothing/belts/scabbards.dmi',
)
force = 12
attack_verb = list("bludgeoned", "struck", "cracked")
flags_equip_slot = SLOT_WAIST|SLOT_BACK
Expand All @@ -164,7 +168,10 @@
/obj/item/storage/large_holster/ceremonial_sword
name = "ceremonial sword scabbard"
desc = "A large, vibrantly colored scabbard used to carry a ceremonial sword."
icon_state = "ceremonial_sword_holster"//object icon is duplicate of katana holster, needs new icon at some point.
icon_state = "ceremonial_sword_holster"
item_icons = list(
WEAR_WAIST = 'icons/mob/humans/onmob/clothing/belts/scabbards.dmi',
)
force = 12
flags_equip_slot = SLOT_WAIST
can_hold = list(/obj/item/weapon/sword/ceremonial)
Expand Down
4 changes: 4 additions & 0 deletions code/game/objects/items/storage/secure.dm
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@
/obj/item/storage/secure/briefcase
name = "secure briefcase"
icon = 'icons/obj/items/storage/briefcases.dmi'
item_icons = list(
WEAR_L_HAND = 'icons/mob/humans/onmob/inhands/equipment/briefcases_lefthand.dmi',
WEAR_R_HAND = 'icons/mob/humans/onmob/inhands/equipment/briefcases_righthand.dmi'
)
icon_state = "secure"
item_state = "sec-case"
desc = "A large briefcase with a digital locking system."
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/storage/smartpack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
icon_state = "smartpack"
icon = 'icons/obj/items/clothing/backpack/smartpack.dmi'
item_icons = list(
WEAR_BACK = 'icons/mob/humans/onmob/clothing/back/backpacks_by_faction/UA.dmi'
WEAR_BACK = 'icons/mob/humans/onmob/clothing/back/smartpack.dmi'
)
flags_atom = FPRINT|NO_GAMEMODE_SKIN // same sprite for all gamemodes
max_storage_space = 14
Expand Down
4 changes: 4 additions & 0 deletions code/game/objects/items/storage/toolkit.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
name = "engineer kit"
desc = "An combat engineering toolkit intended to carry electrical and mechanical supplies into combat. With engineering training you can fit this in a backpack."
icon = 'icons/obj/items/storage/kits.dmi'
item_icons = list(
WEAR_L_HAND = 'icons/mob/humans/onmob/inhands/equipment/tools_lefthand.dmi',
WEAR_R_HAND = 'icons/mob/humans/onmob/inhands/equipment/tools_righthand.dmi',
)
icon_state = "toolkit"
item_state = "fulton"
throw_speed = SPEED_FAST
Expand Down
6 changes: 6 additions & 0 deletions code/game/objects/items/tools/maintenance_tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
name = "screwdriver"
desc = "You can be totally screwy with this."
icon = 'icons/obj/items/tools.dmi'
item_icons = list(
WEAR_FACE = 'icons/mob/humans/onmob/clothing/masks/objects.dmi',
WEAR_L_HAND = 'icons/mob/humans/onmob/inhands/equipment/tools_lefthand.dmi',
WEAR_R_HAND = 'icons/mob/humans/onmob/inhands/equipment/tools_righthand.dmi',
)
icon_state = "screwdriver"
pickup_sound = 'sound/handling/multitool_pickup.ogg'
drop_sound = 'sound/handling/screwdriver_drop.ogg'
Expand Down Expand Up @@ -510,6 +515,7 @@
icon_state = "maintenance_jack"
item_state = "maintenance_jack"
item_icons = list(
WEAR_J_STORE = 'icons/mob/humans/onmob/clothing/suit_storage/tools.dmi',
WEAR_L_HAND = 'icons/mob/humans/onmob/inhands/equipment/tools_lefthand.dmi',
WEAR_R_HAND = 'icons/mob/humans/onmob/inhands/equipment/tools_righthand.dmi',
)
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/weapons/blades.dm
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
name ="\improper M11 throwing knife"
icon = 'icons/obj/items/weapons/melee/knives.dmi'
item_icons = list(
WEAR_FACE = 'icons/mob/humans/onmob/clothing/masks/objects.dmi',
WEAR_L_HAND = 'icons/mob/humans/onmob/inhands/weapons/melee/knives_lefthand.dmi',
WEAR_R_HAND = 'icons/mob/humans/onmob/inhands/weapons/melee/knives_righthand.dmi'
)
Expand Down
4 changes: 4 additions & 0 deletions code/game/objects/items/weapons/swords_axes_etc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
name = "telescopic baton"
desc = "A compact yet rebalanced personal defense weapon. Can be concealed when folded. It will knock down humans when not on harm intent."
icon = 'icons/obj/items/weapons/melee/non_lethal.dmi'
item_icons = list(
WEAR_L_HAND = 'icons/mob/humans/onmob/inhands/weapons/melee/non_lethal_lefthand.dmi',
WEAR_R_HAND = 'icons/mob/humans/onmob/inhands/weapons/melee/non_lethal_righthand.dmi'
)
icon_state = "telebaton_0"
item_state = "telebaton_0"
flags_equip_slot = SLOT_WAIST
Expand Down
1 change: 1 addition & 0 deletions code/modules/clothing/glasses/glasses.dm
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@
name = "Optical Material Scanners"
desc = "With these you can see objects... just like you can with your un-aided eyes. Say why were these ever made again?"
icon = 'icons/obj/items/clothing/glasses/goggles.dmi'
icon_state = "material"
item_icons = list(
WEAR_EYES = 'icons/mob/humans/onmob/clothing/glasses/goggles.dmi',
)
Expand Down
8 changes: 8 additions & 0 deletions code/modules/clothing/glasses/thermal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@
deactive_state = "rwelding-gup"
gender = PLURAL

/obj/item/clothing/glasses/thermal/syndi/kutjevo
icon = 'icons/obj/items/clothing/glasses/goggles.dmi'
icon_state = "kutjevo_goggles"
deactive_state = "kutjevo_goggles"
item_icons = list(
WEAR_EYES = 'icons/mob/humans/onmob/clothing/glasses/goggles.dmi',
)

/obj/item/clothing/glasses/thermal/monocle
name = "Thermoncle"
desc = "A monocle thermal."
Expand Down
Loading
Loading