Skip to content

Commit feeaafa

Browse files
makes the collabs remove the car battery attached to my balls (#38735)
* remove foliage regrowth * Update vgstation13.dme * foliage SS removal cleanup * surely this will have no unforeseen consequences :clueless: * special check code cleanup * missed one * that should be the last of the bear trap stuff * i hate whitespace * merged animal code to SA * adjusting base and croc for new type * mob hunting fix * base grass turf addition * grass tiles swapped type * tool use refactor * Update zoo.dmm * cleanup for jungle grass for var changes * dirt type change, further code cleaning * moved sand * more replacments * all types swapped over, compiler issues fixed * base code moved over * runtime fix * please don't kill me * unemptied some subtypes * tsm * turf speed to parent * Apply suggestions from code review Co-authored-by: west3436 <[email protected]> * water overlay type change --------- Co-authored-by: west3436 <[email protected]>
1 parent 87a8305 commit feeaafa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1915
-2090
lines changed

__DEFINES/_macros.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282

8383
#define isrobot(A) istype(A, /mob/living/silicon/robot)
8484

85-
#define isanimal(A) istype(A, /mob/living/simple_animal) || istype(A,/mob/living/complex_animal)
85+
#define isanimal(A) istype(A, /mob/living/simple_animal)
8686

8787
#define iscorgi(A) istype(A, /mob/living/simple_animal/corgi)
8888

__DEFINES/subsystem.dm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#define SS_INIT_PERSISTENCE_MAP -98
3131
#define SS_INIT_PATHFINDER -100
3232
#define SS_INIT_DAYNIGHT -200
33-
#define SS_INIT_FOLIAGE_REGROW -300
3433

3534
#define SS_PRIORITY_TIMER 1000
3635
#define FIRE_PRIORITY_RUNECHAT 410
@@ -69,7 +68,6 @@
6968
#define SS_PRIORITY_INACTIVITY 1
7069
#define SS_PRIORITY_BURNABLE -50
7170
#define SS_PRIORITY_DAYNIGHT -200
72-
#define SS_PRIORITY_FOLIAGE_REGROW -300
7371
#define SS_PRIORITY_NEWS -1000
7472

7573
#define SS_WAIT_WEATHER 2 SECONDS
@@ -107,7 +105,6 @@
107105
#define SS_DISPLAY_THERM_ENTROPY 13
108106
#define SS_DISPLAY_THERM_DISS 14
109107
#define SS_DISPLAY_DBCORE 15
110-
#define SS_DISPLAY_FOLIAGE_REGROW 19
111108
#define SS_DISPLAY_DAYNIGHT 20
112109
#define SS_DISPLAY_BURNABLE 21
113110

code/controllers/subsystem/foliage_regrowth.dm

Lines changed: 0 additions & 49 deletions
This file was deleted.

code/game/area/Space Station 13 areas.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2186,7 +2186,7 @@ var/global/list/adminbusteleportlocs = list()
21862186
/area/surface/jungle/landing
21872187
name = "\improper Landing Area"
21882188
icon_state="jungle_landing"
2189-
base_turf_type=/turf/unsimulated/floor/jungle/concrete
2189+
base_turf_type=/turf/unsimulated/floor/planetary/concrete/jungle
21902190
holomap_color = HOLOMAP_AREACOLOR_ESCAPE
21912191

21922192
//DJSTATION

code/game/machinery/doors/airlock.dm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,8 +1176,6 @@ About the new airlock wires panel:
11761176
if(SA.environment_smash_flags & OPEN_DOOR_STRONG)
11771177
level_of_door_opening = 2
11781178
dooropendelay=SA.force_airlock_time
1179-
else if(istype(M,/mob/living/complex_animal))
1180-
level_of_door_opening = 1
11811179

11821180

11831181

code/game/machinery/doors/windowdoor.dm

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,6 @@
216216
return
217217
dmg=M.melee_damage_upper
218218
visible_message("<span class='warning'>\The [M.name] [M.attacktext] against \the [name].</span>", 1)
219-
else if(istype(user,/mob/living/complex_animal))
220-
var/mob/living/complex_animal/M = user
221-
dmg= M.base_damage+rand(-M.damage_variance ,M.damage_variance )
222-
visible_message("<span class='warning'>\The [M.name] smacks against \the [name].</span>", 1)
223219
user.do_attack_animation(src, user)
224220
user.delayNextAttack(8)
225221
playsound(src, 'sound/effects/Glasshit.ogg', 75, 1)

code/game/objects/breakable.dm

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,6 @@
249249
try_break()
250250
else
251251
. = ..()
252-
else if(istype(L,/mob/living/complex_animal))
253-
var/mob/living/complex_animal/M=L
254-
M.do_attack_animation(src, M)
255-
M.delayNextAttack(1 SECONDS)
256-
var/glanced=!take_damage(M.base_damage +rand(-M.damage_variance,M.damage_variance), skip_break = TRUE)
257-
M.visible_message("<span class='warning'>\The [M] attacks \the [src][generate_break_text(glanced,TRUE)]</span>","<span class='notice'>You attack \the [src][generate_break_text(glanced)]</span>")
258-
try_break()
259252

260253

261254
//Object ballistically colliding with something

code/game/objects/misc_weapons.dm

Lines changed: 12 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,7 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
453453
var/trapped = 0
454454
var/datum/organ/external/trappedorgan //The limb currently trapped, it must be a leg
455455
var/mob/living/carbon/human/trappeduser
456-
var/mob/living/simple_animal/hostile/bear/trappedbear
457-
var/mob/living/complex_animal/trappedcanimal
456+
var/mob/living/simple_animal/trappedbear
458457
var/obj/item/weapon/grenade/iedcasing/IED = null
459458
var/image/ied_overlay
460459
health=60 //so animals don't break it in 1 hit if they attack it.
@@ -475,9 +474,6 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
475474
if (trappedbear)
476475
unlock_atom(trappedbear)
477476
trappedbear = null
478-
if (trappedcanimal)
479-
unlock_atom(trappedcanimal)
480-
trappedcanimal=null
481477
if (IED)
482478
qdel(IED)
483479
IED = null
@@ -609,38 +605,22 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
609605
trappedbear.update_icon()
610606
trappedbear = null
611607
anchored = FALSE
608+
609+
if(istype(trappedbear,/mob/living/simple_animal/complex))
610+
var/mob/living/simple_animal/complex/CA=trappedbear
611+
CA.family+=user
612+
to_chat(user,"<span class='notice'>\The [trappedbear] seems appreciative.</span>")
612613
return
613614
else
614615
user.visible_message("<span class='warning'>\The [H] fails to pry \the [src] off of \the [trappedbear], and crushes their leg even more!</span>", \
615616
"<span class='warning'>You fail to pry \the [src] off of \the [trappedbear], and you crush their leg even more!</span>")
616617
trappedbear.adjustBruteLoss(5)
617618
return
618-
else if (trappedcanimal)
619-
user.visible_message("<span class='notice'>[H] tries to pry \the [src] off of \the [trappedcanimal]!</span>", \
620-
"<span class='notice'>You try to pry open \the [src] with your bare hands.</span>")
621-
622-
if(do_after(user, src, 40) && prob(60))
623-
user.visible_message("<span class='notice'>\The [H] managed to pry \the [src] off of \the [trappedcanimal]!</span>", \
624-
"<span class='notice'>You manage to pry \the [src] off!</span>")
625-
playsound(user.loc, 'sound/weapons/handcuffs.ogg', 30, 1, -3)
626-
trapped = 0
627-
unlock_atom(trappedcanimal)
628-
trappedcanimal.update_icon()
629-
trappedcanimal = null
630-
anchored = FALSE
631-
trappedcanimal.family+=user
632-
to_chat(user,"<span class='notice'>\The [trappedcanimal] seems appreciative.</span>")
633-
return
634-
else
635-
user.visible_message("<span class='warning'>\The [H] fails to pry \the [src] off of \the [trappedcanimal], and crushes their leg even more!</span>", \
636-
"<span class='warning'>You fail to pry \the [src] off of \the [trappedcanimal], and you crush their leg even more!</span>")
637-
trappedcanimal.adjustBruteLoss(5)
638-
return
639619
..()
640620

641621
/obj/item/weapon/beartrap/try_break(datum/throwparams/propelparams, hit_atom)
642622
if(health <= 0)
643-
if(trappeduser || trappedbear || trappedcanimal)
623+
if(trappeduser || trappedbear)
644624
armed = 0
645625
anchored = FALSE
646626
update_icon()
@@ -654,10 +634,6 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
654634
unlock_atom(trappedbear)
655635
trappedbear.update_icon()
656636
trappedbear = null
657-
if(trappedcanimal)
658-
unlock_atom(trappedcanimal)
659-
trappedcanimal.update_icon()
660-
trappedcanimal = null
661637
return FALSE
662638

663639
visible_message("\the [src] is smashed apart into nothing but metal...")
@@ -725,21 +701,10 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
725701
unlock_atom(trappedbear)
726702
trappedbear.update_icon()
727703
trappedbear = null
728-
else if (trappedcanimal)
729-
user.visible_message("<span class='notice'>[user] tries to pry \the [src] off of \the [trappedcanimal]!</span>", \
730-
"<span class='notice'>You try to pry open \the [src] with \the [I.name].</span>")
731-
if(do_after(user, src, 30))
732-
user.visible_message("<span class='notice'>\The [user] managed to pry \the [src] off of \the [trappedcanimal]!</span>", \
733-
"<span class='notice'>You pry open the bear trap with \the [I.name].</span>")
734-
playsound(user.loc, 'sound/weapons/handcuffs.ogg', 30, 1, -3)
735-
trapped = 0
736-
unlock_atom(trappedcanimal)
737-
trappedcanimal.update_icon()
738-
trappedcanimal = null
739-
anchored = FALSE
740-
trappedcanimal.family+=user
741-
to_chat(user,"<span class='notice'>\The [trappedcanimal] seems appreciative.</span>")
742-
return
704+
if(istype(trappedbear,/mob/living/simple_animal/complex))
705+
var/mob/living/simple_animal/complex/CA=trappedbear
706+
CA.family+=user
707+
to_chat(user,"<span class='notice'>\The [trappedbear] seems appreciative.</span>")
743708
else
744709
to_chat(user, "<span class='notice'>You carefully set the bear trap off with \the [I.name].</span>")
745710
playsound(src, 'sound/effects/snap.ogg', 60, 1)
@@ -768,7 +733,7 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
768733

769734
else if (istype(AM,/mob/living/simple_animal/hostile/bear))
770735
trap(AM)
771-
else if (istype(AM,/mob/living/complex_animal))
736+
else if (istype(AM,/mob/living/simple_animal/complex))
772737
trap(AM)
773738
else if(isanimal(AM))
774739
armed = 0
@@ -822,13 +787,6 @@ var/list/available_redphone_names3 = list("1","2","3","4","5","6","7","8","9")
822787
trapped = 0
823788
trappedbear = null
824789
anchored = FALSE
825-
826-
if(trappedcanimal)
827-
unlock_atom(trappedcanimal)
828-
trappedcanimal.gib()
829-
trapped = 0
830-
trappedcanimal = null
831-
anchored = FALSE
832790

833791
// Called when the dude is moved from the trap on way or the other.
834792
/obj/item/weapon/beartrap/proc/forcefully_remove(atom/movable/mover)

code/game/objects/structures/crates_lockers/closets.dm

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -432,13 +432,6 @@
432432
dump_electronics()
433433
dump_contents()
434434
qdel(src)
435-
else if(istype(user,/mob/living/complex_animal))
436-
visible_message("<span class='warning'>[user] destroys the [src]. </span>")
437-
broken = 1
438-
if(has_electronics)
439-
dump_electronics()
440-
dump_contents()
441-
qdel(src)
442435
// this should probably use dump_contents()
443436
/obj/structure/closet/blob_act()
444437
anim(target = loc, a_icon = 'icons/mob/blob/blob.dmi', flick_anim = "blob_act", sleeptime = 15, lay = 12)

code/game/objects/structures/flora/flora.dm

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@
1111
update_icon()
1212

1313
/obj/structure/flora/Destroy()
14-
if(istype(loc,/turf/unsimulated/floor/jungle/grass))
15-
var/turf/unsimulated/floor/jungle/grass/G=loc
14+
if(istype(loc,/turf/unsimulated/floor/planetary/grass/jungle))
15+
var/turf/unsimulated/floor/planetary/grass/jungle/G=loc
1616
G.turf_speed_multiplier=1.0
17-
if(SSFoliageRegrow)
18-
turfs_to_regrow +=G
19-
G.regrowticks=world.time
2017
..()
2118

2219
/obj/structure/flora/update_icon()

0 commit comments

Comments
 (0)