Spacemandmm galore #1 (#16672)

* dmdoc + Initialize

* no errors anymore

* removed duplicate comment, expanded the other

* changelog

* gdf

* fix emotes F4
This commit is contained in:
Fluffy
2023-09-14 10:39:15 +00:00
committed by GitHub
parent 1171ca0d3a
commit b752616c98
45 changed files with 275 additions and 96 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
. = ..()
update_icon()
add_language(LANGUAGE_TCB)
set_default_language(all_languages[LANGUAGE_TCB])
default_language = all_languages[LANGUAGE_TCB]
botcard = new /obj/item/card/id(src)
botcard.access = botcard_access.Copy()
@@ -13,7 +13,7 @@
/mob/living/carbon/brain/Initialize()
. = ..()
add_language(LANGUAGE_TCB)
set_default_language(all_languages[LANGUAGE_TCB])
default_language = all_languages[LANGUAGE_TCB]
/mob/living/carbon/brain/Destroy()
if(key) //If there is a mob connected to this thing. Have to check key twice to avoid false death reporting.
@@ -33,4 +33,4 @@
else
canmove = 0
return canmove
return canmove
@@ -642,6 +642,7 @@
for(var/obj/machinery/light/L in range(7))
L.broken()
CHECK_TICK
/mob/living/carbon/human/proc/create_darkness()
set category = "Abilities"
@@ -135,8 +135,6 @@
hud_type = /datum/hud_data/construct
/datum/species/apparition/handle_death(var/mob/living/carbon/human/H)
set waitfor = 0
sleep(1)
new /obj/effect/decal/cleanable/ash(H.loc)
qdel(H)
@@ -116,8 +116,6 @@ var/global/list/golem_types = list(SPECIES_GOLEM_COAL,
/datum/species/golem/handle_death(var/mob/living/carbon/human/H)
if(turn_into_materials)
set waitfor = 0
sleep(1)
new H.species.meat_type(H.loc, rand(3,8))
qdel(H)
@@ -411,8 +409,6 @@ var/global/list/golem_types = list(SPECIES_GOLEM_COAL,
return -1 // complete projectile permutation
/datum/species/golem/glass/handle_death(var/mob/living/carbon/human/H)
set waitfor = 0
sleep(1)
for(var/i in 1 to 5)
var/obj/item/material/shard/T = new meat_type(H.loc)
var/turf/landing = get_step(H, pick(alldirs))
@@ -451,8 +447,6 @@ var/global/list/golem_types = list(SPECIES_GOLEM_COAL,
golem_designation = "Phoron"
/datum/species/golem/phoron/handle_death(var/mob/living/carbon/human/H)
set waitfor = 0
sleep(1)
var/turf/location = get_turf(H)
for(var/turf/simulated/floor/target_tile in range(0,location))
target_tile.assume_gas(GAS_PHORON, 200, 100+T0C)
@@ -829,8 +823,6 @@ var/global/list/golem_types = list(SPECIES_GOLEM_COAL,
/datum/species/golem/homunculus/handle_death(var/mob/living/carbon/human/H)
if(turn_into_materials)
set waitfor = 0
sleep(1)
H.gib()
/datum/species/golem/homunculus/handle_environment_special(var/mob/living/carbon/human/H)
@@ -130,6 +130,7 @@
icon_state = "bottle-1"
/obj/item/docility_serum/Initialize() // Better than hardsprited in stuff.
. = ..()
var/mutable_appearance/filling = mutable_appearance(icon, "[icon_state]-100")
filling.color = COLOR_PINK
add_overlay(filling)
@@ -173,6 +174,7 @@
icon_state = "bottle-1"
/obj/item/advanced_docility_serum/Initialize() // Better than hardsprited in stuff.
. = ..()
var/mutable_appearance/filling = mutable_appearance(icon, "[icon_state]-100")
filling.color = COLOR_PALE_PINK
add_overlay(filling)
@@ -216,6 +218,8 @@
icon_state = "bottle-1"
/obj/item/slimesteroid/Initialize() // Better than hardsprited in stuff.
SHOULD_CALL_PARENT(FALSE)
var/mutable_appearance/filling = mutable_appearance(icon, "[icon_state]-100")
filling.color = COLOR_GREEN
add_overlay(filling)
@@ -248,6 +252,8 @@
icon_state = "bottle-1"
/obj/item/extract_enhancer/Initialize() // Better than hardsprited in stuff.
SHOULD_CALL_PARENT(FALSE)
var/mutable_appearance/filling = mutable_appearance(icon, "[icon_state]-100")
filling.color = COLOR_BLUE
add_overlay(filling)
@@ -75,7 +75,7 @@
add_verb(src, /mob/living/proc/ventcrawl)
add_language(LANGUAGE_TCB)
set_default_language(all_languages[LANGUAGE_TCB])
src.default_language = all_languages[LANGUAGE_TCB]
src.colour = colour
number = rand(1, 1000)
+1 -1
View File
@@ -196,7 +196,7 @@ var/list/channel_to_radio_key = new
var/regex/emote = regex("^(\[\\*^\])\[^*\]+$")
if(emote.Find(message))
if(emote.group[1] == "*") return emote(copytext(message, 2))
if(emote.group[1] == "*") return client_emote(copytext(message, 2))
if(emote.group[1] == "^") return custom_emote(VISIBLE_MESSAGE, copytext(message,2))
//parse the radio code and consume it
+1 -1
View File
@@ -171,7 +171,7 @@
if(!card.radio)
card.radio = new /obj/item/device/radio/pai(src.card)
radio = card.radio
card.recalculateChannels()
INVOKE_ASYNC(card, TYPE_PROC_REF(/obj/item/device/paicard, recalculateChannels))
//Default languages without universal translator software
@@ -45,7 +45,7 @@
assigned_antagonist.add_antagonist_mind(src.mind, TRUE)
if(assigned_antagonist.get_antag_radio())
module.channels[assigned_antagonist.get_antag_radio()] = TRUE
radio.recalculateChannels()
INVOKE_ASYNC(radio, TYPE_PROC_REF(/obj/item/device/radio/borg, recalculateChannels))
client.init_verbs()
say("Boot sequence complete!")
return src
@@ -91,7 +91,7 @@
/mob/living/silicon/robot/drone/Initialize()
. = ..()
set_default_language(all_languages[LANGUAGE_LOCAL_DRONE])
default_language = all_languages[LANGUAGE_LOCAL_DRONE]
/mob/living/silicon/robot/drone/Destroy()
if(master_matrix)
@@ -242,7 +242,7 @@
new spawn_module(src, src)
if(key_type)
radio.keyslot = new key_type(radio)
radio.recalculateChannels()
INVOKE_ASYNC(radio, TYPE_PROC_REF(/obj/item/device/radio/borg, recalculateChannels))
if(law_update)
var/new_ai = select_active_ai_with_fewest_borgs()
if(new_ai)
@@ -67,7 +67,7 @@ var/global/list/robot_modules = list(
apply_status_flags(R)
if(R.radio)
R.radio.recalculateChannels()
INVOKE_ASYNC(R.radio, TYPE_PROC_REF(/obj/item/device/radio/borg, recalculateChannels))
R.set_module_sprites(sprites)
R.icon_selected = FALSE
@@ -914,7 +914,7 @@ var/global/list/robot_modules = list(
supported_upgrades = list(/obj/item/robot_parts/robot_component/jetpack)
if(R.radio)
R.radio.recalculateChannels()
INVOKE_ASYNC(R.radio, TYPE_PROC_REF(/obj/item/device/radio/borg, recalculateChannels))
/obj/item/robot_module/military
name = "military robot module"
@@ -28,6 +28,7 @@
var/corpseidicon = null //For setting it to be a gold, silver, centcomm etc ID
/obj/effect/landmark/mobcorpse/Initialize()
. = ..()
createCorpse()
initialized = TRUE
@@ -201,6 +201,8 @@
L.broken()
else
L.flicker()
CHECK_TICK
last_special = world.time + 30
/mob/living/simple_animal/rat/king/verb/devourdead(mob/target as mob in oview())
@@ -20,7 +20,7 @@
/mob/living/simple_animal/slime/Initialize()
. = ..()
add_language(LANGUAGE_TCB)
set_default_language(all_languages[LANGUAGE_TCB])
default_language = all_languages[LANGUAGE_TCB]
/mob/living/simple_animal/slime/can_force_feed(var/feeder, var/food, var/feedback)
if(feedback)
@@ -182,7 +182,7 @@
if(simple_default_language)
add_language(simple_default_language)
set_default_language(all_languages[simple_default_language])
default_language = all_languages[simple_default_language]
if(dead_on_map)
death()
+1 -1
View File
@@ -32,7 +32,7 @@
return
if(use_me)
usr.emote("me",usr.emote_type,message)
usr.client_emote("me",usr.emote_type,message)
else
usr.emote(message)