Skip to content

Commit

Permalink
Little refactor for mechas
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-34 committed Mar 9, 2024
1 parent ca7fd46 commit 961f869
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 24 deletions.
14 changes: 1 addition & 13 deletions modular_ss220/mecha_skins/code/paintkit_install.dm
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,10 @@

/obj/structure/mecha_wreckage/gygax/gygax_black
name = "\improper Обломки черного Гигакса"
desc = "Логотип Синдиката все ещё на месте. Хм.."
desc = "Логотип Синдиката все ещё на месте. Хм..."
icon = 'modular_ss220/mecha_skins/icons/mecha.dmi'
icon_state = "gygax_black-broken"

/obj/structure/mecha_wreckage/gygax/gygax_nt
name = "\improper Обломки специального Гигакса НТ"
desc = "Видимо козырь был плохим..."
icon = 'modular_ss220/mecha_skins/icons/mecha.dmi'
icon_state = "ntgygax-broken"

// DURAND

/obj/structure/mecha_wreckage/durand/dollhouse
Expand All @@ -161,12 +155,6 @@
icon = 'modular_ss220/mecha_skins/icons/mecha.dmi'
icon_state = "shire-broken"

/obj/structure/mecha_wreckage/durand/rover
name = "\improper Обломки Ровера."
desc = "И как такой гигант пал?"
icon = 'modular_ss220/mecha_skins/icons/mecha.dmi'
icon_state = "darkdurand-broken"

/obj/structure/mecha_wreckage/durand/skull
name = "\improper Обломки \"Скелемеха\""
desc = "Ужасающие останки нечто, похожего на одного из боссов Лаваленда..."
Expand Down
Binary file modified modular_ss220/mecha_skins/icons/mecha.dmi
Binary file not shown.
1 change: 0 additions & 1 deletion modular_ss220/mecha_skins/mecha_skins.dme
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
#include "code/fabricator_design.dm"
#include "code/paintkit_install.dm"
#include "code/paintkit_menu.dm"
#include "code/mecha_preloaded.dm"
1 change: 1 addition & 0 deletions modular_ss220/objects/_objects.dme
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// Mechs
#include "code/mecha/lockermech.dm"
#include "code/mecha/combat.dm"

// Miscellaneous
#include "code/beach_umbrella.dm"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// GYGAX

/// NT Special Gygax
/obj/mecha/combat/gygax/nt
name = "Nanotrasen Special Gygax"
name = "Специальный Гигакс НТ"
desc = "Козырь Nanotrasen при решении проблем, легкий мех окрашенный в победоносные цвета НТ. Если вы видите этот мех, вероятно все проблемы уже решены."
icon = 'modular_ss220/mecha_skins/icons/mecha.dmi'
icon = 'modular_ss220/objects/icons/mecha.dmi'
icon_state = "ntgygax"
initial_icon = "ntgygax"
max_integrity = 300
Expand Down Expand Up @@ -46,12 +47,20 @@
/obj/mecha/combat/gygax/nt/add_cell()
cell = new /obj/item/stock_parts/cell/high/slime(src)

// NT Special Gygax wreckage
/obj/structure/mecha_wreckage/gygax/gygax_nt
name = "\improper Обломки Специального Гигакса НТ"
desc = "Видимо козырь был плохим..."
icon = 'modular_ss220/objects/icons/mecha.dmi'
icon_state = "ntgygax-broken"

// DURAND

/// Rover
/obj/mecha/combat/durand/rover
desc = "Combat exosuit, developed by syndicate from the Durand Mk. II by scraping unnecessary things, and adding some of their tech. Much more protected from any Nanotrasen hazards."
name = "Rover"
icon = 'modular_ss220/mecha_skins/icons/mecha.dmi'
name = "Ровер"
desc = "Боевой мех, разработанный Синдикатом на основе Durand Mk. II путем удаления ненужных вещей и добавления некоторых своих технологий. Гораздо лучше защищен от любых опасностей, связанных с Нанотрейзен."
icon = 'modular_ss220/objects/icons/mecha.dmi'
icon_state = "darkdurand"
initial_icon = "darkdurand"
armor = list(melee = 30, bullet = 40, laser = 50, energy = 50, bomb = 20, rad = 50, fire = 100, acid = 100)
Expand All @@ -60,17 +69,15 @@
internal_damage_threshold = 35
wreckage = /obj/structure/mecha_wreckage/durand/rover
starting_voice = /obj/item/mecha_modkit/voice/syndicate
destruction_sleep_duration = 1
destruction_sleep_duration = 2 SECONDS

/obj/mecha/combat/durand/rover/GrantActions(mob/living/user, human_occupant = 0)
..()
thrusters_action.Grant(user, src)
defense_action.Grant(user, src)

/obj/mecha/combat/durand/rover/RemoveActions(mob/living/user, human_occupant = 0)
..()
thrusters_action.Remove(user)
defense_action.Remove(user)

/obj/mecha/combat/durand/rover/loaded/Initialize(mapload)
. = ..()
Expand All @@ -85,3 +92,10 @@

/obj/mecha/combat/durand/rover/loaded/add_cell()
cell = new /obj/item/stock_parts/cell/bluespace(src)

// Rover's wreckage
/obj/structure/mecha_wreckage/durand/rover
name = "\improper Обломки Ровера"
desc = "И как такой гигант пал?"
icon = 'modular_ss220/objects/icons/mecha.dmi'
icon_state = "darkdurand-broken"
4 changes: 2 additions & 2 deletions modular_ss220/objects/code/mecha/lockermech.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/obj/mecha/lockermech
name = "Шкафомех"
desc = "Шкафчик с украденными проводами, стойками, электроникой и шлюзовыми сервоприводами, грубо собранными в нечто, напоминающее мех."
icon = 'modular_ss220/objects/icons/mech.dmi'
icon = 'modular_ss220/objects/icons/mecha.dmi'
icon_state = "lockermech"
initial_icon = "lockermech"
// It's made of scraps
Expand Down Expand Up @@ -152,7 +152,7 @@
/obj/structure/mecha_wreckage/lockermech
name = "\improper Обломки Шкафомеха"
desc = "Владелец данного изделия, на что он надеялся?..."
icon = 'modular_ss220/objects/icons/mech.dmi'
icon = 'modular_ss220/objects/icons/mecha.dmi'
icon_state = "lockermech-broken"

// Equipment
Expand Down
Binary file added modular_ss220/objects/icons/mecha.dmi
Binary file not shown.

0 comments on commit 961f869

Please sign in to comment.