Skip to content

Commit

Permalink
Revert "hmm"
Browse files Browse the repository at this point in the history
This reverts commit 0d2da94.
  • Loading branch information
Helg2 committed Dec 2, 2024
1 parent 0d2da94 commit 4927447
Show file tree
Hide file tree
Showing 15 changed files with 116 additions and 112 deletions.
72 changes: 72 additions & 0 deletions code/modules/mob/living/carbon/human/human_species.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// These may have some say.dm bugs regarding understanding common,
// might be worth adapting the bugs into a feature and using these
// subtypes as a basis for non-common-speaking alien foreigners. ~ Z

/mob/living/carbon/human/species/monkey
race = "Monkey"

/mob/living/carbon/human/species/monkey/farwa
race = "Farwa"

/mob/living/carbon/human/species/monkey/naera
race = "Naera"

/mob/living/carbon/human/species/monkey/stok
race = "Stok"

/mob/living/carbon/human/species/monkey/yiren
race = "Yiren"

/mob/living/carbon/human/species/synthetic
race = "Synthetic"

/mob/living/carbon/human/species/early_synthetic
race = "Early Synthetic"

/mob/living/carbon/human/species/moth
race = "Moth"

/datum/species/moth/handle_post_spawn(mob/living/carbon/human/H)
. = ..()
H.moth_wings = pick(GLOB.moth_wings_list - "Burnt Off")

/mob/living/carbon/human/species/vatgrown
race = "Vat-Grown Human"

/mob/living/carbon/human/species/sectoid
race = "Sectoid"

/mob/living/carbon/human/species/vatborn
race = "Vatborn"

/mob/living/carbon/human/species/skeleton
race = "Skeleton"

/mob/living/carbon/human/species/zombie
race = "Strong zombie"

/mob/living/carbon/human/species/zombie/Initialize(mapload)
. = ..()
var/datum/outfit/outfit = pick(GLOB.survivor_outfits)
outfit = new outfit()
INVOKE_ASYNC(outfit, TYPE_PROC_REF(/datum/outfit, equip), src)
a_intent = INTENT_HARM

/mob/living/carbon/human/species/robot
race = "Combat Robot"
bubble_icon = "robot"

/mob/living/carbon/human/species/robot/alpharii
race = "Hammerhead Combat Robot"

/mob/living/carbon/human/species/robot/charlit
race = "Chilvaris Combat Robot"

/mob/living/carbon/human/species/robot/deltad
race = "Ratcher Combat Robot"

/mob/living/carbon/human/species/robot/bravada
race = "Sterling Combat Robot"

/mob/living/carbon/human/species/necoarc
race = "Neco Arc"
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/mob/living/carbon/human/species/early_synthetic
race = "Early Synthetic"

//It really should be just a subtype of synthetic
/datum/species/early_synthetic // Worse at medical, better at engineering. Tougher in general than later synthetics.
name = "Early Synthetic"
Expand Down
15 changes: 0 additions & 15 deletions code/modules/mob/living/carbon/human/species/monkey.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/mob/living/carbon/human/species/monkey
race = "Monkey"

//todo: wound overlays are strange for monkeys and should likely use icon adding instead
//im not about to cram in that refactor with a carbon -> species refactor though
/datum/species/monkey
Expand Down Expand Up @@ -52,25 +49,16 @@
/datum/species/monkey/random_name(gender,unique,lastname)
return "[lowertext(name)] ([rand(1,999)])"

/mob/living/carbon/human/species/monkey/farwa
race = "Farwa"

/datum/species/monkey/tajara
name = "Farwa"
icobase = 'icons/mob/human_races/r_farwa.dmi'
speech_verb_override = "mews"

/mob/living/carbon/human/species/monkey/naera
race = "Naera"

/datum/species/monkey/skrell
name = "Naera"
icobase = 'icons/mob/human_races/r_naera.dmi'
speech_verb_override = "squiks"

/mob/living/carbon/human/species/monkey/stok
race = "Stok"

/datum/species/monkey/unathi
name = "Stok"
icobase = 'icons/mob/human_races/r_stok.dmi'
Expand All @@ -83,6 +71,3 @@
cold_level_1 = ICE_COLONY_TEMPERATURE - 20
cold_level_2 = ICE_COLONY_TEMPERATURE - 40
cold_level_3 = ICE_COLONY_TEMPERATURE - 80

/mob/living/carbon/human/species/monkey/yiren
race = "Yiren"
7 changes: 0 additions & 7 deletions code/modules/mob/living/carbon/human/species/moth.dm
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
/mob/living/carbon/human/species/moth
race = "Moth"

/datum/species/moth/handle_post_spawn(mob/living/carbon/human/H)
. = ..()
H.moth_wings = pick(GLOB.moth_wings_list - "Burnt Off")

/datum/species/moth
name = "Moth"
name_plural = "Moth"
Expand Down
3 changes: 0 additions & 3 deletions code/modules/mob/living/carbon/human/species/necoarc.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/mob/living/carbon/human/species/necoarc
race = "Neco Arc"

/datum/species/necoarc
name = "Neco Arc"
name_plural = "Neco Arc"
Expand Down
16 changes: 0 additions & 16 deletions code/modules/mob/living/carbon/human/species/robot.dm
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/mob/living/carbon/human/species/robot
race = "Combat Robot"
bubble_icon = "robot"

/datum/species/robot
name = "Combat Robot"
name_plural = "Combat Robots"
Expand Down Expand Up @@ -91,36 +87,24 @@
. = GLOB.namepool[namepool].get_random_name()
to_chat(prefs.parent, span_warning("You forgot to set your robot in your preferences. Please do so next time."))

/mob/living/carbon/human/species/robot/alpharii
race = "Hammerhead Combat Robot"

/datum/species/robot/alpharii
name = "Hammerhead Combat Robot"
name_plural = "Hammerhead Combat Robots"
icobase = 'icons/mob/human_races/r_robot_alpharii.dmi'
joinable_roundstart = FALSE

/mob/living/carbon/human/species/robot/charlit
race = "Chilvaris Combat Robot"

/datum/species/robot/charlit
name = "Chilvaris Combat Robot"
name_plural = "Chilvaris Combat Robots"
icobase = 'icons/mob/human_races/r_robot_charlit.dmi'
joinable_roundstart = FALSE

/mob/living/carbon/human/species/robot/deltad
race = "Ratcher Combat Robot"

/datum/species/robot/deltad
name = "Ratcher Combat Robot"
name_plural = "Ratcher Combat Robots"
icobase = 'icons/mob/human_races/r_robot_deltad.dmi'
joinable_roundstart = FALSE

/mob/living/carbon/human/species/robot/bravada
race = "Sterling Combat Robot"

/datum/species/robot/bravada
name = "Sterling Combat Robot"
name_plural = "Sterling Combat Robots"
Expand Down
3 changes: 0 additions & 3 deletions code/modules/mob/living/carbon/human/species/sectoid.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/mob/living/carbon/human/species/sectoid
race = "Sectoid"

/datum/species/sectoid
name = "Sectoid"
name_plural = "Sectoids"
Expand Down
3 changes: 0 additions & 3 deletions code/modules/mob/living/carbon/human/species/skeleton.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/mob/living/carbon/human/species/skeleton
race = "Skeleton"

/datum/species/skeleton
name = "Skeleton"
name_plural = "skeletons"
Expand Down
3 changes: 0 additions & 3 deletions code/modules/mob/living/carbon/human/species/synthetic.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/mob/living/carbon/human/species/synthetic
race = "Synthetic"

/datum/species/synthetic
name = "Synthetic"
name_plural = "Synthetics"
Expand Down
3 changes: 0 additions & 3 deletions code/modules/mob/living/carbon/human/species/vatborn.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/mob/living/carbon/human/species/vatborn
race = "Vatborn"

/datum/species/human/vatborn
name = "Vatborn"
name_plural = "Vatborns"
Expand Down
3 changes: 0 additions & 3 deletions code/modules/mob/living/carbon/human/species/vatgrown.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/mob/living/carbon/human/species/vatgrown
race = "Vat-Grown Human"

/datum/species/human/vatgrown
name = "Vat-Grown Human"
name_plural = "Vat-Grown Humans"
Expand Down
42 changes: 0 additions & 42 deletions code/modules/mob/living/carbon/human/species/yautja.dm
Original file line number Diff line number Diff line change
@@ -1,45 +1,3 @@
/mob/living/carbon/human/species/yautja
chat_color = "#aa0000"

/mob/living/carbon/human/species/yautja/get_paygrade()
if(client.clan_info)
return client.clan_info.item[2] <= GLOB.clan_ranks_ordered.len ? GLOB.clan_ranks_ordered[client.clan_info.item[2]] : GLOB.clan_ranks_ordered[1]

/mob/living/carbon/human/species/yautja/hud_set_hunter()
. = ..()

var/image/holder = hud_list[HUNTER_CLAN]
if(!holder)
return

holder.icon_state = "predhud"

if(client?.clan_info?.item?[4])
var/datum/db_query/player_clan = SSdbcore.NewQuery("SELECT id, name, description, honor, color FROM [format_table_name("clan")] WHERE id = :clan_id", list("clan_id" = client.clan_info.item[4]))
player_clan.Execute()
if(player_clan.NextRow())
holder.color = player_clan.item[5]

hud_list[HUNTER_CLAN] = holder

/mob/living/carbon/human/species/yautja/send_speech(message_raw, message_range = 6, obj/source = src, bubble_type = bubble_icon, list/spans, datum/language/message_language=null, message_mode)
. = ..()
playsound(loc, pick('sound/voice/predator/click1.ogg', 'sound/voice/predator/click2.ogg'), 25, 1)

/mob/living/carbon/human/species/yautja/get_idcard(hand_first = TRUE)
. = ..()
if(!.)
var/obj/item/clothing/gloves/yautja/hunter/bracer = gloves
if(istype(bracer))
. = bracer.embedded_id
return .

/mob/living/carbon/human/species/yautja/get_reagent_tags()
return species?.reagent_tag

/mob/living/carbon/human/species/yautja/can_be_operated_on(mob/user)
return TRUE

/datum/species/yautja
name = "Yautja"
name_plural = "Yautja"
Expand Down
41 changes: 41 additions & 0 deletions code/modules/mob/living/carbon/human/yautja.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/mob/living/carbon/human/species/yautja
chat_color = "#aa0000"

/mob/living/carbon/human/species/yautja/get_paygrade()
if(client.clan_info)
return client.clan_info.item[2] <= GLOB.clan_ranks_ordered.len ? GLOB.clan_ranks_ordered[client.clan_info.item[2]] : GLOB.clan_ranks_ordered[1]

/mob/living/carbon/human/species/yautja/hud_set_hunter()
. = ..()

var/image/holder = hud_list[HUNTER_CLAN]
if(!holder)
return

holder.icon_state = "predhud"

if(client?.clan_info?.item?[4])
var/datum/db_query/player_clan = SSdbcore.NewQuery("SELECT id, name, description, honor, color FROM [format_table_name("clan")] WHERE id = :clan_id", list("clan_id" = client.clan_info.item[4]))
player_clan.Execute()
if(player_clan.NextRow())
holder.color = player_clan.item[5]

hud_list[HUNTER_CLAN] = holder

/mob/living/carbon/human/species/yautja/send_speech(message_raw, message_range = 6, obj/source = src, bubble_type = bubble_icon, list/spans, datum/language/message_language=null, message_mode)
. = ..()
playsound(loc, pick('sound/voice/predator/click1.ogg', 'sound/voice/predator/click2.ogg'), 25, 1)

/mob/living/carbon/human/species/yautja/get_idcard(hand_first = TRUE)
. = ..()
if(!.)
var/obj/item/clothing/gloves/yautja/hunter/bracer = gloves
if(istype(bracer))
. = bracer.embedded_id
return .

/mob/living/carbon/human/species/yautja/get_reagent_tags()
return species?.reagent_tag

/mob/living/carbon/human/species/yautja/can_be_operated_on(mob/user)
return TRUE
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
/mob/living/carbon/human/species/zombie
race = "Strong zombie"

/mob/living/carbon/human/species/zombie/Initialize(mapload)
. = ..()
var/datum/outfit/outfit = pick(GLOB.survivor_outfits)
outfit = new outfit()
INVOKE_ASYNC(outfit, TYPE_PROC_REF(/datum/outfit, equip), src)
a_intent = INTENT_HARM

/datum/species/zombie
name = "Zombie"
name_plural = "Zombies"
Expand Down
4 changes: 3 additions & 1 deletion tgmc.dme
Original file line number Diff line number Diff line change
Expand Up @@ -1628,13 +1628,16 @@
#include "code\modules\mob\living\carbon\human\human_defines.dm"
#include "code\modules\mob\living\carbon\human\human_helpers.dm"
#include "code\modules\mob\living\carbon\human\human_movement.dm"
#include "code\modules\mob\living\carbon\human\human_species.dm"
#include "code\modules\mob\living\carbon\human\human_status_procs.dm"
#include "code\modules\mob\living\carbon\human\inventory.dm"
#include "code\modules\mob\living\carbon\human\life.dm"
#include "code\modules\mob\living\carbon\human\login.dm"
#include "code\modules\mob\living\carbon\human\logout.dm"
#include "code\modules\mob\living\carbon\human\say.dm"
#include "code\modules\mob\living\carbon\human\update_icons.dm"
#include "code\modules\mob\living\carbon\human\yautja.dm"
#include "code\modules\mob\living\carbon\human\zombie.dm"
#include "code\modules\mob\living\carbon\human\emote\human.dm"
#include "code\modules\mob\living\carbon\human\emote\necoarc.dm"
#include "code\modules\mob\living\carbon\human\emote\robot.dm"
Expand Down Expand Up @@ -1663,7 +1666,6 @@
#include "code\modules\mob\living\carbon\human\species\vatborn.dm"
#include "code\modules\mob\living\carbon\human\species\vatgrown.dm"
#include "code\modules\mob\living\carbon\human\species\yautja.dm"
#include "code\modules\mob\living\carbon\human\species\zombie.dm"
#include "code\modules\mob\living\carbon\xenomorph\abilities.dm"
#include "code\modules\mob\living\carbon\xenomorph\attack_alien.dm"
#include "code\modules\mob\living\carbon\xenomorph\charge_crush.dm"
Expand Down

0 comments on commit 4927447

Please sign in to comment.