Skip to content

Commit

Permalink
Merge branch 'master220' into multiz-nanomap
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Jul 31, 2024
2 parents 0da4d9c + f013298 commit f12ac40
Show file tree
Hide file tree
Showing 28 changed files with 697 additions and 214 deletions.
2 changes: 2 additions & 0 deletions code/game/objects/items/stacks/stack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@
merge(AM)
. = ..()

/* SS220 REMOVAL
/obj/item/stack/Destroy()
if(usr && usr.machine == src)
usr << browse(null, "window=stack")
return ..()
*/

/obj/item/stack/examine(mob/user)
. = ..()
Expand Down
34 changes: 24 additions & 10 deletions modular_ss220/aesthetics/_aesthetics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,29 @@

GLOB.wood_recipes += list(
null,
new /datum/stack_recipe("wood floor tile", /obj/item/stack/tile/wood, 1, 4, 20),
new /datum/stack_recipe("oak wood floor tile", /obj/item/stack/tile/wood/oak, 1, 4, 20),
new /datum/stack_recipe("birch wood floor tile", /obj/item/stack/tile/wood/birch, 1, 4, 20),
new /datum/stack_recipe("cherry wood floor tile", /obj/item/stack/tile/wood/cherry, 1, 4, 20),
new /datum/stack_recipe("fancy wood floor tile", /obj/item/stack/tile/wood/fancy, 1, 4, 20),
new /datum/stack_recipe("fancy oak wood floor tile", /obj/item/stack/tile/wood/fancy/oak, 1, 4, 20),
new /datum/stack_recipe("fancy birch wood floor tile", /obj/item/stack/tile/wood/fancy/birch, 1, 4, 20),
new /datum/stack_recipe("fancy cherry wood floor tile", /obj/item/stack/tile/wood/fancy/cherry, 1, 4, 20),
new /datum/stack_recipe("parquet wood floor tile", /obj/item/stack/tile/wood/parquet, 1, 4, 20),
new /datum/stack_recipe("tiled parquet wood floor tile", /obj/item/stack/tile/wood/parquet/tile, 1, 4, 20),
new /datum/stack_recipe_list("Деревянный пол", list(
new /datum/stack_recipe("Обычный деревянный пол", /obj/item/stack/tile/wood, 1, 4, 20),
new /datum/stack_recipe("Дубовый деревянный пол", /obj/item/stack/tile/wood/oak, 1, 4, 20),
new /datum/stack_recipe("Берёзовый деревянный пол", /obj/item/stack/tile/wood/birch, 1, 4, 20),
new /datum/stack_recipe("Вишнёвый деревянный пол", /obj/item/stack/tile/wood/cherry, 1, 4, 20),
)),
new /datum/stack_recipe_list("Деревянный пол (Цельный)", list(
new /datum/stack_recipe("Обычный цельный деревянный пол", /obj/item/stack/tile/wood/fancy, 1, 4, 20),
new /datum/stack_recipe("Дубовый цельный деревянный пол", /obj/item/stack/tile/wood/fancy/oak, 1, 4, 20),
new /datum/stack_recipe("Берёзовый цельный деревянный пол", /obj/item/stack/tile/wood/fancy/birch, 1, 4, 20),
new /datum/stack_recipe("Вишнёвый цельный деревянный пол", /obj/item/stack/tile/wood/fancy/cherry, 1, 4, 20),
)),
new /datum/stack_recipe_list("Паркет", list(
new /datum/stack_recipe("Обычный паркет", /obj/item/stack/tile/wood/parquet, 1, 4, 20),
new /datum/stack_recipe("Дубовый паркет", /obj/item/stack/tile/wood/parquet/oak, 1, 4, 20),
new /datum/stack_recipe("Берёзовый паркет", /obj/item/stack/tile/wood/parquet/birch, 1, 4, 20),
new /datum/stack_recipe("Вишнёвый паркет", /obj/item/stack/tile/wood/parquet/cherry, 1, 4, 20),
)),
new /datum/stack_recipe_list("Паркет (Классический)", list(
new /datum/stack_recipe("Классический обычный паркет", /obj/item/stack/tile/wood/parquet/tile, 1, 4, 20),
new /datum/stack_recipe("Классический дубовый паркет", /obj/item/stack/tile/wood/parquet/tile/oak, 1, 4, 20),
new /datum/stack_recipe("Классический берёзовый паркет", /obj/item/stack/tile/wood/parquet/tile/birch, 1, 4, 20),
new /datum/stack_recipe("Классический вишнёвый паркет", /obj/item/stack/tile/wood/parquet/tile/cherry, 1, 4, 20),
)),
null)

2 changes: 1 addition & 1 deletion modular_ss220/aesthetics/_aesthetics.dme
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "extinguisher\code\extinguisher.dm"
#include "firealarm\code\firealarm.dm"
#include "floors\code\floors.dm"
#include "floors\code\tile_types.dm"
#include "floors\code\wood.dm"
#include "goonstation\code\items.dm"
#include "hydroponics\code\hydroponics.dm"
#include "intercom\code\intercom.dm"
Expand Down
2 changes: 0 additions & 2 deletions modular_ss220/aesthetics/decals/code/decals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

/obj/effect/turf_decal/siding/wood
icon_state = "siding_wood_line"
color = "#55391A"

/obj/effect/turf_decal/siding/wood/corner
icon_state = "siding_wood_corner"
Expand All @@ -15,7 +14,6 @@

/obj/effect/turf_decal/siding/wood/alternative
icon_state = "siding_wood_line"
color = "#5d341f"

/obj/effect/turf_decal/siding/wood/alternative/corner
icon_state = "siding_wood_corner"
Expand Down
68 changes: 0 additions & 68 deletions modular_ss220/aesthetics/floors/code/floors.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,74 +16,6 @@
/turf/simulated/floor/mech_bay_recharge_floor
icon = 'modular_ss220/aesthetics/floors/icons/floors.dmi'

// WOODEN FLOORS
/turf/simulated/floor/wood
icon = 'modular_ss220/aesthetics/floors/icons/wooden.dmi'

/turf/simulated/floor/wood/oak
icon_state = "wood-oak"
floor_tile = /obj/item/stack/tile/wood/oak

/turf/simulated/floor/wood/oak/get_broken_states()
return list("wood-oak-broken", "wood-oak-broken2", "wood-oak-broken3", "wood-oak-broken4", "wood-oak-broken5", "wood-oak-broken6", "wood-oak-broken7")

/turf/simulated/floor/wood/birch
icon_state = "wood-birch"
floor_tile = /obj/item/stack/tile/wood/birch

/turf/simulated/floor/wood/birch/get_broken_states()

return list("wood-birch-broken", "wood-birch-broken2", "wood-birch-broken3", "wood-birch-broken4", "wood-birch-broken5", "wood-birch-broken6", "wood-birch-broken7")

/turf/simulated/floor/wood/cherry
icon_state = "wood-cherry"
floor_tile = /obj/item/stack/tile/wood/cherry

/turf/simulated/floor/wood/cherry/get_broken_states()
return list("wood-cherry-broken", "wood-cherry-broken2", "wood-cherry-broken3", "wood-cherry-broken4", "wood-cherry-broken5", "wood-cherry-broken6", "wood-cherry-broken7")

/turf/simulated/floor/wood/fancy
icon_state = "fancy-wood"
floor_tile = /obj/item/stack/tile/wood/fancy

/turf/simulated/floor/wood/fancy/get_broken_states()
return list("fancy-wood-broken", "fancy-wood-broken2", "fancy-wood-broken3")

/turf/simulated/floor/wood/fancy/oak
icon_state = "fancy-wood-oak"
floor_tile = /obj/item/stack/tile/wood/fancy/oak

/turf/simulated/floor/wood/fancy/oak/get_broken_states()
return list("fancy-wood-oak-broken", "fancy-wood-oak-broken2", "fancy-wood-oak-broken3")

/turf/simulated/floor/wood/fancy/birch
icon_state = "fancy-wood-birch"
floor_tile = /obj/item/stack/tile/wood/fancy/birch

/turf/simulated/floor/wood/fancy/birch/get_broken_states()
return list("fancy-wood-birch-broken", "fancy-wood-birch-broken2", "fancy-wood-birch-broken3")

/turf/simulated/floor/wood/fancy/cherry
icon_state = "fancy-wood-cherry"
floor_tile = /obj/item/stack/tile/wood/fancy/cherry

/turf/simulated/floor/wood/fancy/cherry/get_broken_states()
return list("fancy-wood-cherry-broken", "fancy-wood-cherry-broken2", "fancy-wood-cherry-broken3")

/turf/simulated/floor/wood/parquet
icon_state = "wood_parquet"
floor_tile = /obj/item/stack/tile/wood/parquet

/turf/simulated/floor/wood/parquet/get_broken_states()
return list("wood_parquet-broken", "wood_parquet-broken2", "wood_parquet-broken3", "wood_parquet-broken4", "wood_parquet-broken5", "wood_parquet-broken6", "wood_parquet-broken7")

/turf/simulated/floor/wood/parquet/tile
icon_state = "wood_tile"
floor_tile = /obj/item/stack/tile/wood/parquet/tile

/turf/simulated/floor/wood/parquet/tile/get_broken_states()
return list("wood_tile-broken", "wood_tile-broken2", "wood_tile-broken3")

/turf/simulated/floor/plasteel/smooth
icon_state = "smooth"

Expand Down
66 changes: 0 additions & 66 deletions modular_ss220/aesthetics/floors/code/tile_types.dm

This file was deleted.

111 changes: 111 additions & 0 deletions modular_ss220/aesthetics/floors/code/wood.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
/obj/item/stack/tile
icon = 'modular_ss220/aesthetics/floors/icons/tiles.dmi'

/// Automatically generates all subtypes for a wooden floor with tiles.
#define WOODEN_FLOOR_HELPER(path, tile)\
##path/oak {\
color = "#644526";\
floor_tile = ##tile/oak;\
}\
##tile/oak {\
name = "oak wood floor tiles";\
singular_name = "oak wood floor tile";\
color = "#644526";\
turf_type = ##path/oak;\
merge_type = ##tile/oak;\
}\
##path/birch {\
color = "#FFECB3";\
floor_tile = ##tile/birch;\
}\
##tile/birch {\
name = "birch wood floor tiles";\
singular_name = "birch wood floor tile";\
color = "#FFECB3";\
turf_type = ##path/birch;\
merge_type = ##tile/birch;\
}\
##path/cherry {\
color = "#643412";\
floor_tile = ##tile/cherry;\
}\
##tile/cherry {\
name = "cherry wood floor tiles";\
singular_name = "cherry wood floor tile";\
color = "#643412";\
turf_type = ##path/cherry;\
merge_type = ##tile/cherry;\
}\

// Wood
/obj/item/stack/tile/wood
color = "#864A2D"

/turf/simulated/floor/wood
icon = 'modular_ss220/aesthetics/floors/icons/wooden.dmi'
icon_state = "wood"
color = "#864A2D"

/turf/simulated/floor/wood/get_broken_states()
return list("wood-broken", "wood-broken2", "wood-broken3", "wood-broken4", "wood-broken5", "wood-broken6", "wood-broken7")

WOODEN_FLOOR_HELPER(/turf/simulated/floor/wood, /obj/item/stack/tile/wood)

// Fancy Wood
/obj/item/stack/tile/wood/fancy
name = "fancy light oak wood floor tiles"
singular_name = "fancy wood floor tile"
icon_state = "tile-wood-fancy"
color = "#864A2D"
turf_type = /turf/simulated/floor/wood/fancy
merge_type = /obj/item/stack/tile/wood/fancy

/turf/simulated/floor/wood/fancy
icon_state = "wood_fancy"
color = "#864A2D"
floor_tile = /obj/item/stack/tile/wood/fancy

/turf/simulated/floor/wood/fancy/get_broken_states()
return list("wood_fancy-broken", "wood_fancy-broken2", "wood_fancy-broken3")

WOODEN_FLOOR_HELPER(/turf/simulated/floor/wood/fancy, /obj/item/stack/tile/wood/fancy)

// Parquet
/obj/item/stack/tile/wood/parquet
name = "parquet wood floor tiles"
singular_name = "wood parquet floor tile"
icon_state = "tile-wood-parquet"
color = "#864A2D"
turf_type = /turf/simulated/floor/wood/parquet
merge_type = /obj/item/stack/tile/wood/parquet

/turf/simulated/floor/wood/parquet
icon_state = "wood_parquet"
color = "#864A2D"
floor_tile = /obj/item/stack/tile/wood/parquet

/turf/simulated/floor/wood/parquet/get_broken_states()
return list("wood_parquet-broken", "wood_parquet-broken2", "wood_parquet-broken3", "wood_parquet-broken4", "wood_parquet-broken5", "wood_parquet-broken6", "wood_parquet-broken7")

WOODEN_FLOOR_HELPER(/turf/simulated/floor/wood/parquet, /obj/item/stack/tile/wood/parquet)

// Tiled Parquet
/obj/item/stack/tile/wood/parquet/tile
name = "tiled parquet wood floor tiles"
singular_name = "wood tiled parquet floor tile"
icon_state = "tile-wood-tile"
color = "#864A2D"
turf_type = /turf/simulated/floor/wood/parquet/tile
merge_type = /obj/item/stack/tile/wood/parquet/tile

/turf/simulated/floor/wood/parquet/tile
icon_state = "wood_tile"
color = "#864A2D"
floor_tile = /obj/item/stack/tile/wood/parquet/tile

/turf/simulated/floor/wood/parquet/tile/get_broken_states()
return list("wood_tile-broken", "wood_tile-broken2", "wood_tile-broken3")

WOODEN_FLOOR_HELPER(/turf/simulated/floor/wood/parquet/tile, /obj/item/stack/tile/wood/parquet/tile)

#undef WOODEN_FLOOR_HELPER
Binary file modified modular_ss220/aesthetics/floors/icons/tiles.dmi
Binary file not shown.
Binary file modified modular_ss220/aesthetics/floors/icons/wooden.dmi
Binary file not shown.
2 changes: 2 additions & 0 deletions modular_ss220/modular_ss220.dme
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@
#include "phrases/_phrases.dme"
#include "species/_species.dme"
#include "species_whitelist/_species_whitelist.dme"
#include "stack_craft_tgui/_stack_craft_tgui.dme"
#include "antagonists/_antagonists.dme"
#include "uplink_items/_uplink_items.dme"
#include "shuttles/_shuttles.dme"
#include "redis220/_redis220.dme"
#include "robolimbs/_robolimbs.dme"
// --- PRIME --- //
// #define MODPACK_MAIN_ONLY
// Чтобы отключить модпаки прайма, нужно добавиту строку выше в code/__DEFINES/_ss220.dm.
Expand Down
4 changes: 4 additions & 0 deletions modular_ss220/robolimbs/_robolimbs.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/datum/modpack/robolimbs
name = "Новые протезы"
desc = "Новые протезы и головы."
author = "sirstaniya"
3 changes: 3 additions & 0 deletions modular_ss220/robolimbs/_robolimbs.dme
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "_robolimbs.dm"

#include "code/robolimbs.dm"
19 changes: 19 additions & 0 deletions modular_ss220/robolimbs/code/robolimbs.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/datum/robolimb/etaminindustry
company = "Etamin Industry Gold On Black"
desc = "Модель протезированной конечности от Этамин Индастрис."
icon = 'modular_ss220/robolimbs/icons/etaminindustry_main.dmi'
has_subtypes = 1

/datum/robolimb/etaminindustry/etaminindustry_alt1
company = "Etamin Industry Elite Series"
icon = 'modular_ss220/robolimbs/icons/etaminindustry_alt1.dmi'
parts = list("head")
selectable = 0
has_subtypes = null

/datum/robolimb/etaminindustry/etaminindustry_alt2
company = "Etamin Industry SharpShooter Series"
icon = 'modular_ss220/robolimbs/icons/etaminindustry_alt2.dmi'
parts = list("head")
selectable = 0
has_subtypes = null
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions modular_ss220/stack_craft_tgui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Изменения в изначальном коде

`code/game/objects/items/stacks/stack.dm` - `del`:`proc "Destroy"`
`tgui/packages/tgui/components/Collapsible.js` - `add`:`prop "contentStyle"`
`tgui/packages/tgui/styles/components/ImageButton.scss` - `add`:`style "user-select"`
4 changes: 4 additions & 0 deletions modular_ss220/stack_craft_tgui/_stack_craft_tgui.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/datum/modpack/stack_craft_tgui
name = "Stack Craft TGUI"
desc = "Красивый, удобный интерфейс для меню крафта материалов."
author = "Aylong, Gaxeer"
5 changes: 5 additions & 0 deletions modular_ss220/stack_craft_tgui/_stack_craft_tgui.dme
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "_stack_craft_tgui.dm"

#include "code/stack.dm"
#include "code/stack_ui.dm"
#include "code/stack_recipe.dm"
Loading

0 comments on commit f12ac40

Please sign in to comment.