Skip to content

Commit

Permalink
Resomi Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
800maximum123 committed Jul 18, 2024
1 parent d2f20f9 commit c4c9f6c
Show file tree
Hide file tree
Showing 55 changed files with 224 additions and 237 deletions.
12 changes: 0 additions & 12 deletions code/modules/merchant/merchant_programs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,3 @@
if(href_list["PRG_sell_items"])
. = TOPIC_HANDLED
sell_items(T, user.get_skill_value(SKILL_FINANCE))
if(href_list["PRG_bribe"])
. = TOPIC_HANDLED
bribe(T, text2num(href_list["PRG_bribe"]))

/datum/computer_file/program/merchant/no_id
available_on_ntnet = FALSE
required_access = null

/datum/computer_file/program/merchant/ignore_distance
available_on_ntnet = FALSE
ignore_distance = TRUE
required_access = access_merchant
3 changes: 1 addition & 2 deletions maps/torch_fd/fd_torch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,6 @@

// ~NON-UPSTREAM MODS~ //

#include "../../mods/resomi_fd/_resomi.dme"

#include "../../mods/_fd/runechat/_runechat.dme"
#include "../../mods/_fd/fd_assets/_fd_assets.dme"
#include "../../mods/_fd/fd_guns/_fd_guns.dme"
Expand All @@ -266,6 +264,7 @@
#include "../../mods/_fd/multitile_vehicles/_multitile_vehicles.dme"
#include "../../mods/_fd/old_space_cannons/_old_space_cannons.dme"
#include "../../mods/_fd/random_rooms/_random_rooms.dme"
#include "../../mods/_fd/resomi_fd/_resomi.dme"
#include "../../mods/_fd/structure_storage/_structure_storage.dme"

#include "../../mods/_fd/_maps/airfield/_airfield.dme"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
// RESOMI EMOTIONS

/singleton/emote/audible/chuckle/resomi
emote_sound = 'mods/resomi_fd/sound/resomilaugh.ogg'
emote_sound = 'mods/_fd/resomi_fd/sound/resomilaugh.ogg'
sounded_species = null

/singleton/emote/audible/cough/resomi
emote_sound = 'mods/resomi_fd/sound/resomicough.ogg'
emote_sound = 'mods/_fd/resomi_fd/sound/resomicough.ogg'
sounded_species = null

/singleton/emote/audible/laugh/resomi
emote_sound = 'mods/resomi_fd/sound/resomilaugh.ogg'
emote_sound = 'mods/_fd/resomi_fd/sound/resomilaugh.ogg'
sounded_species = null

/singleton/emote/audible/scream/resomi
emote_sound = 'mods/resomi_fd/sound/resomiscream.ogg'
emote_sound = 'mods/_fd/resomi_fd/sound/resomiscream.ogg'
sounded_species = null

/singleton/emote/audible/sneeze/resomi
emote_sound = 'mods/resomi_fd/sound/resomisneeze.ogg'
emote_sound = 'mods/_fd/resomi_fd/sound/resomisneeze.ogg'
sounded_species = null

/singleton/emote/audible/peep/resomi
key = "peep"
emote_message_3p = "USER пищит"
emote_sound = 'mods/resomi_fd/sound/peep.ogg'
emote_sound = 'mods/_fd/resomi_fd/sound/peep.ogg'
sounded_species = null

/singleton/emote/audible/rustle/resomi
key = "rustle"
emote_message_3p = "USER шелестит крыльями"
emote_sound = 'mods/resomi_fd/sound/rustle.ogg'
emote_sound = 'mods/_fd/resomi_fd/sound/rustle.ogg'
sounded_species = null

/singleton/emote/audible/trill/resomi
key = "trill"
emote_message_3p = "USER издаёт трель"
emote_sound = 'mods/resomi_fd/sound/trill.ogg'
emote_sound = 'mods/_fd/resomi_fd/sound/trill.ogg'
sounded_species = null

/singleton/emote/audible/warble/resomi
key = "warble"
emote_message_3p = "USER издаёт трель"
emote_sound = 'mods/resomi_fd/sound/warble.ogg'
emote_sound = 'mods/_fd/resomi_fd/sound/warble.ogg'
sounded_species = null

/singleton/emote/audible/wurble/resomi
key = "wurble"
emote_message_3p = "USER урчит"
emote_sound = 'mods/resomi_fd/sound/wurble.ogg'
emote_sound = 'mods/_fd/resomi_fd/sound/wurble.ogg'
sounded_species = null
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/obj/item/holder/human
icon = 'mods/resomi_fd/icons/holder_complex.dmi'
icon = 'mods/_fd/resomi_fd/icons/holder_complex.dmi'
var/list/generate_for_slots = list(slot_l_hand_str, slot_r_hand_str, slot_back_str)
w_class = ITEM_SIZE_LARGE
slot_flags = SLOT_BACK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
parent_organ = BP_CHEST

/obj/item/organ/internal/eyes/resomi
icon = 'mods/resomi_fd/icons/human_races/eyes.dmi'
eye_icon = 'mods/resomi_fd/icons/human_races/eyes.dmi'
icon = 'mods/_fd/resomi_fd/icons/human_races/eyes.dmi'
eye_icon = 'mods/_fd/resomi_fd/icons/human_races/eyes.dmi'
191 changes: 191 additions & 0 deletions mods/_fd/resomi_fd/code/clothing/clothing.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@


//Shoes

/obj/item/clothing/shoes/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_feet_resomi.dmi')
LAZYSET(sprite_sheets_obj, SPECIES_RESOMI, 'packs/infinity/icons/obj/clothing/species/resomi/obj_feet_resomi.dmi')

//Gloves
/obj/item/clothing/gloves/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_hands_resomi.dmi')


//suit
/obj/item/clothing/suit/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_suit_resomi.dmi')
LAZYSET(sprite_sheets_obj, SPECIES_RESOMI, 'packs/infinity/icons/obj/clothing/species/resomi/obj_suit_resomi.dmi')

//rig
/obj/item/rig/eva/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_rig_back_resomi.dmi')

/obj/item/rig/light/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_rig_back_resomi.dmi')

/obj/item/rig/medical/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_rig_back_resomi.dmi')

/obj/item/rig/hazard/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_rig_back_resomi.dmi')

/obj/item/rig/combat/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_rig_back_resomi.dmi')

/obj/item/rig/merc/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_rig_back_resomi.dmi')

/obj/item/rig/zero/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_rig_back_resomi.dmi')

/obj/item/rig/ce/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_rig_back_resomi.dmi')

/obj/item/rig/industrial/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_rig_back_resomi.dmi')

/obj/item/rig/hazmat/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_rig_back_resomi.dmi')

/obj/item/rig/ert/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_rig_back_resomi.dmi')

/obj/item/rig/command/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_rig_back_resomi.dmi')


/*
/obj/item/clothing/head/helmet/space/rig/Initialize()
. = ..()
LAZYADD(species_restricted, list(SPECIES_RESOMI))
/obj/item/clothing/gloves/rig/Initialize()
. = ..()
LAZYADD(species_restricted, list(SPECIES_RESOMI))
/obj/item/clothing/shoes/magboots/rig/Initialize()
. = ..()
LAZYADD(species_restricted, list(SPECIES_RESOMI))
/obj/item/clothing/suit/space/rig/Initialize()
. = ..()
LAZYADD(species_restricted, list(SPECIES_RESOMI))
*/


/obj/item/storage/belt/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_belt_resomi.dmi')

/obj/item/clothing/accessory/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_accessories_resomi.dmi')
LAZYSET(sprite_sheets_obj, SPECIES_RESOMI, 'packs/infinity/icons/obj/clothing/species/resomi/obj_accessories_resomi.dmi')
// back
/obj/item/storage/backpack/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_back_resomi.dmi')

// under
/obj/item/clothing/under/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_under_resomi.dmi')
LAZYSET(sprite_sheets_obj, SPECIES_RESOMI, 'packs/infinity/icons/obj/clothing/species/resomi/obj_under_resomi.dmi')
//ears
/obj/item/clothing/ears/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_ears_resomi.dmi')

//mask
/obj/item/clothing/mask/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_mask_resomi.dmi')

//head
/obj/item/clothing/head/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_head_resomi.dmi')
LAZYSET(sprite_sheets_obj, SPECIES_RESOMI, 'packs/infinity/icons/obj/clothing/species/resomi/obj_head_resomi.dmi')

/obj/item/clothing/head/beret/Initialize()
. = ..()
LAZYSET(base_sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_head_resomi.dmi')

//glasses
/obj/item/clothing/glasses/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_eyes_resomi.dmi')
LAZYSET(sprite_sheets_obj, SPECIES_RESOMI, 'packs/infinity/icons/obj/clothing/species/resomi/obj_eyes_resomi.dmi')

//devices and machines
/obj/machinery/suit_cycler/Initialize()
. = ..()
species += SPECIES_RESOMI

/obj/item/auto_cpr/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_suit_resomi.dmi')

/obj/item/device/radio/headset/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_ears_resomi.dmi')

/obj/item/clothing/mask/plunger/equipped(M, slot)
..()
sprite_sheets[SPECIES_RESOMI] = (slot == slot_head ? 'mods/_fd/resomi_fd/icons/clothing/onmob_head_resomi.dmi' : 'mods/_fd/resomi_fd/icons/clothing/onmob_mask_resomi.dmi')

/obj/item/card/id/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_id_resomi.dmi')

/obj/item/handcuffs/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/misc.dmi')

/obj/item/storage/belt/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_belt_resomi.dmi')

/obj/item/tank/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/onmob_back_resomi.dmi')

/obj/item/towel/equipped(M, slot)
..()
sprite_sheets = list(SPECIES_RESOMI = (slot == slot_head ? 'mods/_fd/resomi_fd/icons/clothing/onmob_head_resomi.dmi' : 'mods/_fd/resomi_fd/icons/clothing/onmob_suit_resomi.dmi'))

/obj/item/clothing/under/solgov/utility/expeditionary/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/solgov/onmob_under_resomi.dmi')

/obj/item/clothing/accessory/solgov/department/Initialize()
. = ..()
LAZYSET(sprite_sheets, SPECIES_RESOMI, 'mods/_fd/resomi_fd/icons/clothing/solgov/onmob_accessories_resomi.dmi')

//
#define SETUP_SPECIES_ONMOB "sprite_sheets"

/singleton/item_modifier/space_suit/Initialize()
. = ..()
var/helmet_setup = type_setups[/obj/item/clothing/head/helmet/space]
helmet_setup[SETUP_SPECIES_ONMOB] += list(SPECIES_RESOMI = 'mods/_fd/resomi_fd/icons/clothing/onmob_head_resomi.dmi')

var/suit_setup = type_setups[/obj/item/clothing/suit/space/void]
suit_setup[SETUP_SPECIES_ONMOB] += list(SPECIES_RESOMI = 'mods/_fd/resomi_fd/icons/clothing/onmob_suit_resomi.dmi')

#undef SETUP_SPECIES_ONMOB
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/obj/item/clothing/glasses/sunglasses/lenses
name = "small sun lenses"
desc = "It looks fitted to nonhuman proportions. Usually, you can(?) see them in resomis' or monkeys' eyes."
item_icons = list(slot_glasses_str = 'mods/resomi_fd/icons/clothing/onmob_eyes_resomi.dmi')
item_icons = list(slot_glasses_str = 'mods/_fd/resomi_fd/icons/clothing/onmob_eyes_resomi.dmi')
icon = 'packs/infinity/icons/obj/clothing/species/resomi/obj_eyes_resomi.dmi'
icon_state = "sun_lenses"
item_state = null
Expand All @@ -12,7 +12,7 @@
/obj/item/clothing/glasses/sunglasses/sechud/lenses
name = "small sechud lenses"
desc = "Lenses with a HUD. This one has a sechud."
item_icons = list(slot_glasses_str = 'mods/resomi_fd/icons/clothing/onmob_eyes_resomi.dmi')
item_icons = list(slot_glasses_str = 'mods/_fd/resomi_fd/icons/clothing/onmob_eyes_resomi.dmi')
icon = 'packs/infinity/icons/obj/clothing/species/resomi/obj_eyes_resomi.dmi'
icon_state = "sec_lenses"
item_state = null
Expand All @@ -22,7 +22,7 @@
/obj/item/clothing/glasses/hud/health/lenses
name = "small medhud lenses"
desc = "A small lenses that scans the creatures in view and provides accurate data about their health status."
item_icons = list(slot_glasses_str = 'mods/resomi_fd/icons/clothing/onmob_eyes_resomi.dmi')
item_icons = list(slot_glasses_str = 'mods/_fd/resomi_fd/icons/clothing/onmob_eyes_resomi.dmi')
icon = 'packs/infinity/icons/obj/clothing/species/resomi/obj_eyes_resomi.dmi'
icon_state = "med_lenses"
item_state = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

/obj/item/clothing/accessory/necklace/collar/New()
sprite_sheets += list(SPECIES_RESOMI = 'mods/resomi_fd/icons/clothing/misc.dmi')
sprite_sheets += list(SPECIES_RESOMI = 'mods/_fd/resomi_fd/icons/clothing/misc.dmi')
. = ..()

/obj/item/clothing/accessory/scarf/resomi
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@
hoodtype = /obj/item/clothing/head/resomi/resomi_hood
//allowed = list (/obj/item/weapon/pen, /obj/item/weapon/paper, /obj/item/device/flashlight,/obj/item/weapon/tank/emergency/oxygen, /obj/item/weapon/storage/fancy/cigarettes, /obj/item/weapon/storage/box/matches, /obj/item/weapon/reagent_containers/food/drinks/flask)
species_restricted = list(SPECIES_RESOMI)
sprite_sheets = list(SPECIES_RESOMI = 'mods/resomi_fd/icons/clothing/onmob_suit_resomi.dmi')
sprite_sheets = list(SPECIES_RESOMI = 'mods/_fd/resomi_fd/icons/clothing/onmob_suit_resomi.dmi')

/obj/item/clothing/suit/storage/hooded/resomi/New()
..()
Expand Down Expand Up @@ -775,7 +775,7 @@
flags_inv = BLOCKHAIR | HIDEEARS
body_parts_covered = HEAD
species_restricted = list(SPECIES_RESOMI)
sprite_sheets = list(SPECIES_RESOMI = 'mods/resomi_fd/icons/clothing/onmob_head_resomi.dmi')
sprite_sheets = list(SPECIES_RESOMI = 'mods/_fd/resomi_fd/icons/clothing/onmob_head_resomi.dmi')

/obj/item/clothing/head/resomi/resomi_hood/polychromic_hood
name = "polychromic hood"
Expand Down
Loading

0 comments on commit c4c9f6c

Please sign in to comment.