Skip to content

Commit

Permalink
Merge branch 'Hybrisa' of https://github.com/Zenith00000/cmss13 into …
Browse files Browse the repository at this point in the history
…Hybrisa
  • Loading branch information
Zenith00000 committed May 22, 2024
2 parents 0e0c7b6 + 2494839 commit 141eba1
Show file tree
Hide file tree
Showing 18 changed files with 103 additions and 108 deletions.
24 changes: 12 additions & 12 deletions code/game/objects/structures/crates_lockers/closets/phonebox.dm
Original file line number Diff line number Diff line change
Expand Up @@ -88,27 +88,27 @@
update_icon()

/obj/structure/machinery/phonebox/allow_drop()
return 0
return FALSE

/obj/structure/machinery/phonebox/relaymove(mob/user as mob)
if(user.stat)
return
src.go_out()
go_out()
return

/obj/structure/machinery/phonebox/update_icon()
..()
if(stat & NOPOWER)
if(!open)
icon_state = "phonebox_off_empty_closed"
if(src.occupant)
if(occupant)
icon_state = "phonebox_off_full_closed"
else
icon_state = "phonebox_off_open"
else
if(!open)
icon_state = "phonebox_on_empty_closed"
if(src.occupant)
if(occupant)
icon_state = "phonebox_on_full_closed"
else
icon_state = "phonebox_on_open"
Expand Down Expand Up @@ -144,10 +144,10 @@
M.client.perspective = EYE_PERSPECTIVE
M.client.eye = src
M.forceMove(src)
src.occupant = M
occupant = M
start_processing()
src.add_fingerprint(usr)
src.open = FALSE
add_fingerprint(usr)
open = FALSE
update_icon()
return TRUE

Expand All @@ -158,16 +158,16 @@
set src in oview(1)
if (usr.stat != 0)
return
src.go_out()
go_out()
add_fingerprint(usr)
return

/obj/structure/machinery/phonebox/attack_hand(mob/living/user)
if(src.open)
src.open = FALSE
if(open)
open = FALSE
else
src.open = TRUE
src.go_out()
open = TRUE
go_out()
update_icon()


Expand Down
10 changes: 5 additions & 5 deletions code/game/objects/structures/fence.dm
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,15 @@ GLOBAL_LIST_INIT(all_fences, list())
spark_system.start(src)

/obj/structure/fence/electrified/attackby(obj/item/W, mob/user)
if(src.electrified && !src.cut)
if(electrified && !cut)
if(istype(user, /mob/living/carbon/human))
var/mob/living/carbon/human/human = user
if(human.gloves)
var/obj/item/clothing/gloves/G = human.gloves
if(G.siemens_coefficient != 0)
src.electrocute_human(human)
var/obj/item/clothing/gloves/worn_gloves = human.gloves
if(worn_gloves.siemens_coefficient != 0)
electrocute_human(human)
else
src.electrocute_human(human)
electrocute_human(human)
. = ..()

/obj/structure/fence/electrified/ex_act(severity)
Expand Down
14 changes: 7 additions & 7 deletions code/game/objects/structures/window.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@
basestate = "strata_window"
desc = "A glass window. Light refracts incorrectly when looking through. It looks rather strong. Might take a few good hits to shatter it."
health = 100
reinf = 1
reinf = TRUE
window_frame = /obj/structure/window_frame/hybrisa/colony/reinforced

/obj/structure/window/framed/hybrisa/colony/hull
Expand Down Expand Up @@ -1086,7 +1086,7 @@
basestate = "strata_window"
desc = "A glass window. Light refracts incorrectly when looking through. It looks rather strong. Might take a few good hits to shatter it."
health = 100
reinf = 1
reinf = TRUE
window_frame = /obj/structure/window_frame/hybrisa/research/reinforced

/obj/structure/window/framed/hybrisa/research/hull
Expand All @@ -1111,7 +1111,7 @@
name = "reinforced window"
desc = "A glass window with a special rod matrix inside a wall frame. It looks rather strong. Might take a few good hits to shatter it."
health = 100
reinf = 1
reinf = TRUE
icon_state = "prison_rwindow0"
basestate = "prison_rwindow"
window_frame = /obj/structure/window_frame/hybrisa/marshalls/reinforced
Expand All @@ -1138,7 +1138,7 @@
basestate = "strata_window"
desc = "A glass window. Light refracts incorrectly when looking through. It looks rather strong. Might take a few good hits to shatter it."
health = 100
reinf = 1
reinf = TRUE
window_frame = /obj/structure/window_frame/hybrisa/colony/hospital/reinforced

/obj/structure/window/framed/hybrisa/colony/hospital/hull
Expand Down Expand Up @@ -1168,7 +1168,7 @@
basestate = "strata_window"
desc = "A glass window. Light refracts incorrectly when looking through. It looks rather strong. Might take a few good hits to shatter it."
health = 100
reinf = 1
reinf = TRUE
window_frame = /obj/structure/window_frame/hybrisa/colony/office/reinforced

/obj/structure/window/framed/hybrisa/colony/office/hull
Expand Down Expand Up @@ -1198,7 +1198,7 @@
basestate = "strata_window"
desc = "A glass window. Light refracts incorrectly when looking through. It looks rather strong. Might take a few good hits to shatter it."
health = 100
reinf = 1
reinf = TRUE
window_frame = /obj/structure/window_frame/hybrisa/colony/engineering/reinforced

/obj/structure/window/framed/hybrisa/colony/engineering/hull
Expand All @@ -1223,7 +1223,7 @@
name = "reinforced window"
desc = "A glass window with a special rod matrix inside a wall frame. It looks rather strong. Might take a few good hits to shatter it."
health = 100
reinf = 1
reinf = TRUE
icon_state = "prison_rwindow0"
basestate = "prison_rwindow"
window_frame = /obj/structure/window_frame/hybrisa/spaceport/reinforced
Expand Down
16 changes: 8 additions & 8 deletions code/game/turfs/walls/wall_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ INITIALIZE_IMMEDIATE(/turf/closed/wall/indestructible/splashscreen)
icon = 'icons/turf/walls/engineership.dmi'
icon_state = "metal"//DMI specific name
walltype = WALL_HUNTERSHIP
hull = 1
hull = TRUE

// Rock
/turf/closed/wall/hybrisa/rock
Expand All @@ -1352,7 +1352,7 @@ INITIALIZE_IMMEDIATE(/turf/closed/wall/indestructible/splashscreen)
icon = 'icons/turf/walls/kutjevorockdark.dmi'
icon_state = "rock"
walltype = WALL_KUTJEVO_ROCK
hull = 1
hull = TRUE

// Marshalls
/turf/closed/wall/hybrisa/marhsalls
Expand All @@ -1372,7 +1372,7 @@ INITIALIZE_IMMEDIATE(/turf/closed/wall/indestructible/splashscreen)
icon = 'icons/turf/walls/hybrisa_marshalls.dmi'
icon_state = "hwall"
walltype = WALL_REINFORCED
hull = 1
hull = TRUE

// Research

Expand All @@ -1399,7 +1399,7 @@ INITIALIZE_IMMEDIATE(/turf/closed/wall/indestructible/splashscreen)
damage_cap = HEALTH_WALL_REINFORCED

/turf/closed/wall/hybrisa/research/reinforced/hull
hull = 1
hull = TRUE
icon_state = "strata_hull"
desc = "A thick and chunky metal wall that is, just by virtue of its placement and imposing presence, entirely indestructible."

Expand Down Expand Up @@ -1427,7 +1427,7 @@ INITIALIZE_IMMEDIATE(/turf/closed/wall/indestructible/splashscreen)
damage_cap = HEALTH_WALL_REINFORCED

/turf/closed/wall/hybrisa/colony/reinforced/hull
hull = 1
hull = TRUE
icon_state = "strata_hull"
desc = "A thick and chunky metal wall that is, just by virtue of its placement and imposing presence, entirely indestructible."

Expand Down Expand Up @@ -1456,7 +1456,7 @@ INITIALIZE_IMMEDIATE(/turf/closed/wall/indestructible/splashscreen)
damage_cap = HEALTH_WALL_REINFORCED

/turf/closed/wall/hybrisa/colony/hospital/reinforced/hull
hull = 1
hull = TRUE
icon_state = "strata_hull"
desc = "A thick and chunky metal wall that is, just by virtue of its placement and imposing presence, entirely indestructible."

Expand Down Expand Up @@ -1512,7 +1512,7 @@ INITIALIZE_IMMEDIATE(/turf/closed/wall/indestructible/splashscreen)
damage_cap = HEALTH_WALL_REINFORCED

/turf/closed/wall/hybrisa/colony/engineering/reinforced/hull
hull = 1
hull = TRUE
icon_state = "strata_hull"
desc = "A thick and chunky metal wall that is, just by virtue of its placement and imposing presence, entirely indestructible."

Expand All @@ -1534,4 +1534,4 @@ INITIALIZE_IMMEDIATE(/turf/closed/wall/indestructible/splashscreen)
icon = 'icons/turf/walls/hybrisa_spaceport_walls.dmi'
icon_state = "hwall"
walltype = WALL_REINFORCED
hull = 1
hull = TRUE
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/xenomorph/attack_alien.dm
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@
return XENO_ATTACK_ACTION

/obj/structure/fence/electrified/attack_alien(mob/living/carbon/xenomorph/M)
if(src.electrified && !src.cut) //this is placeholder, needs to be updated
if(electrified && !cut) //this is placeholder, needs to be updated
electrocute_xenomorph(M)
. = ..()

Expand Down
31 changes: 15 additions & 16 deletions code/modules/mob/living/simple_animal/friendly/rat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,27 @@
min_oxy = 16 //Require atleast 16kPA oxygen
minbodytemp = 223 //Below -50 Degrees Celcius
maxbodytemp = 323 //Above 50 Degrees Celcius
universal_speak = 0
universal_understand = 1
universal_speak = FALSE
universal_understand = TRUE
holder_type = /obj/item/holder/rat

/mob/living/simple_animal/rat/Life(delta_time)
..()
if(!stat && prob(speak_chance))
for(var/mob/M in view())
M << 'sound/effects/mousesqueek.ogg'
for(var/mob/cur_mob in view())
cur_mob << 'sound/effects/mousesqueek.ogg'

if(!ckey && stat == CONSCIOUS && prob(0.5))
set_stat(UNCONSCIOUS)
icon_state = "rat_[body_color]_sleep"
wander = 0
wander = FALSE
speak_chance = 0
//snuffles
else if(stat == UNCONSCIOUS)
if(ckey || prob(1))
set_stat(CONSCIOUS)
icon_state = "rat_[body_color]"
wander = 1
wander = TRUE
else if(prob(5))
INVOKE_ASYNC(src, PROC_REF(emote), "snuffles")

Expand All @@ -72,10 +72,10 @@
PF.flags_pass = PASS_FLAGS_CRAWLER

/mob/living/simple_animal/rat/splat(mob/killer)
src.health = 0
src.set_stat(DEAD)
src.icon_dead = "rat_[body_color]_splat"
src.icon_state = "rat_[body_color]_splat"
health = 0
set_stat(DEAD)
icon_dead = "rat_[body_color]_splat"
icon_state = "rat_[body_color]_splat"
layer = ABOVE_LYING_MOB_LAYER
if(client)
client.time_died_as_mouse = world.time
Expand All @@ -89,11 +89,11 @@
if(!ckey && stat == UNCONSCIOUS)
set_stat(CONSCIOUS)
icon_state = "rat_[body_color]"
wander = 1
wander = TRUE
else if(!stat && prob(5))
var/mob/M = AM
to_chat(M, SPAN_NOTICE(" [icon2html(src, M)] Squeek!"))
M << 'sound/effects/mousesqueek.ogg'
var/mob/crossed_mob = AM
to_chat(crossed_mob, SPAN_NOTICE(" [icon2html(src, crossed_mob)] Squeek!"))
crossed_mob << 'sound/effects/mousesqueek.ogg'
..()

/mob/living/simple_animal/rat/death()
Expand All @@ -111,8 +111,7 @@
if(H.a_intent == INTENT_HELP)
get_scooped(H)
return
else
return ..()
return ..()

/mob/living/simple_animal/rat/get_scooped(mob/living/carbon/grabber)
if (stat >= DEAD)
Expand Down
1 change: 0 additions & 1 deletion colonialmarines.dme
Original file line number Diff line number Diff line change
Expand Up @@ -2493,5 +2493,4 @@
#include "interface\interface.dm"
#include "interface\skin.dmf"
#include "maps\_basemap.dm"
#include "maps\map_files\LV759_Hybrisa_Prospera\LV759_Hybrisa_Prospera.dmm"
// END_INCLUDE
19 changes: 0 additions & 19 deletions html/changelogs/AutoChangeLog-pr-6244.yml

This file was deleted.

5 changes: 0 additions & 5 deletions html/changelogs/AutoChangeLog-pr-6251.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-6291.yml

This file was deleted.

5 changes: 0 additions & 5 deletions html/changelogs/AutoChangeLog-pr-6297.yml

This file was deleted.

5 changes: 0 additions & 5 deletions html/changelogs/AutoChangeLog-pr-6300.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-6302.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-6303.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-6305.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-6306.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-6307.yml

This file was deleted.

Loading

0 comments on commit 141eba1

Please sign in to comment.