Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 747ea86

Browse files
Makes Jungleland Good (#22669)
* makes jungleland good * cooldown fix * tar king stuff
1 parent a653b8b commit 747ea86

File tree

19 files changed

+397
-217
lines changed

19 files changed

+397
-217
lines changed

code/__DEFINES/colors.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
#define COLOR_VIOLET "#B900F7"
109109
#define COLOR_STRONG_VIOLET "#6927C5"
110110
#define COLOR_DARK_PURPLE "#551A8B"
111+
#define COLOR_TAR_PURPLE "#553F8A"
111112

112113
#define COLOR_ORANGE "#FF9900"
113114
#define COLOR_IRISH_ORANGE "#FF883E"

code/__DEFINES/maths.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#define NUM_E 2.71828183
66

77
#define PI 3.1416
8+
#define SQRT_2 1.414214
89
#define INFINITY 1e31 //closer then enough
910

1011
#define SHORT_REAL_LIMIT 16777216

code/__DEFINES/say.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
#define SPAN_CULTLARGE "cultlarge"
8080
#define SPAN_HELIUM "small"
8181
#define SPAN_PROGENITOR "progenitor"
82+
#define SPAN_COLOSSUS "colossus"
8283

8384
//bitflag #defines for return value of the radio() proc.
8485
#define ITALICS (1<<0)

code/datums/components/afterimage.dm

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,17 @@
1818
//cycles colors
1919
var/last_colour = 0
2020
var/color_cycle = FALSE
21+
var/fade_color
2122
var/list/hsv
2223

23-
/datum/component/after_image/Initialize(duration = 15, rest_time = 1, color_cycle = FALSE)
24+
/datum/component/after_image/Initialize(duration = 15, rest_time = 1, color_cycle = FALSE, fade_color)
2425
if(!ismovable(parent))
2526
return COMPONENT_INCOMPATIBLE
2627
owner = parent
2728
src.rest_time = rest_time
2829
src.duration = duration
2930
src.color_cycle = color_cycle
31+
src.fade_color = fade_color
3032
last_colour = world.time
3133

3234
/datum/component/after_image/RegisterWithParent()
@@ -75,7 +77,10 @@
7577
F.pixel_x = (traveled * x_modifier) + owner.pixel_x
7678
F.pixel_y = (traveled * y_modifier) + owner.pixel_y
7779

78-
//give them a random colours
80+
//give them colors
81+
if(fade_color)
82+
F.color = fade_color
83+
return
7984
if(!color_cycle)
8085
return
8186
if(!hsv)

code/game/objects/items/grenades/plastic.dm

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@
3232

3333
/obj/item/grenade/plastic/Destroy()
3434
qdel(nadeassembly)
35+
if(target)
36+
UnregisterSignal(target, COMSIG_ATOM_UPDATE_OVERLAYS)
37+
target.update_appearance()
38+
target = null
3539
nadeassembly = null
36-
target = null
37-
..()
40+
return ..()
3841

3942
/obj/item/grenade/plastic/attackby(obj/item/I, mob/user, params)
4043
if(!nadeassembly && istype(I, /obj/item/assembly_holder))
@@ -55,7 +58,7 @@
5558
nadeassembly = null
5659
update_appearance(UPDATE_ICON)
5760
return
58-
..()
61+
return ..()
5962

6063
/obj/item/grenade/plastic/prime()
6164
var/turf/location
@@ -136,13 +139,17 @@
136139
I.throw_range = max(1, (I.throw_range - 3))
137140
I.embedding = I.embedding.setRating(embed_chance = 0)
138141

139-
target.add_overlay(plastic_overlay, TRUE)
142+
RegisterSignal(target, COMSIG_ATOM_UPDATE_OVERLAYS, PROC_REF(update_attached_overlays))
143+
target.update_appearance(UPDATE_OVERLAYS)
140144
if(!nadeassembly)
141145
to_chat(user, span_notice("You plant the bomb. Timer counting down from [det_time]."))
142146
addtimer(CALLBACK(src, PROC_REF(prime)), det_time*10)
143147
else
144148
qdel(src) //How?
145149

150+
/obj/item/grenade/plastic/proc/update_attached_overlays(atom/source, list/overlay_list)
151+
overlay_list += plastic_overlay
152+
146153
/obj/item/grenade/plastic/proc/shout_syndicate_crap(mob/M)
147154
if(!M)
148155
return
@@ -194,6 +201,9 @@
194201

195202
/obj/item/grenade/plastic/c4/Destroy()
196203
qdel(wires)
204+
if(target)
205+
UnregisterSignal(target, COMSIG_ATOM_UPDATE_OVERLAYS)
206+
target.update_appearance(UPDATE_OVERLAYS)
197207
wires = null
198208
target = null
199209
return ..()

code/modules/mob/living/simple_animal/animal_defense.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
M.do_attack_animation(src, ATTACK_EFFECT_DISARM)
77
playsound(src, 'sound/weapons/thudswoosh.ogg', 50, TRUE, -1)
88
var/shove_dir = get_dir(M, src)
9-
if(!Move(get_step(src, shove_dir), shove_dir))
9+
if(move_resist > M.move_force || !Move(get_step(src, shove_dir), shove_dir))
1010
log_combat(M, src, "shoved", "failing to move it")
1111
M.visible_message(span_danger("[M.name] shoves [src]!"),
1212
span_danger("You shove [src]!"), span_hear("You hear aggressive shuffling!"), COMBAT_MESSAGE_RANGE, list(src))

code/modules/mob/living/simple_animal/hostile/hostile.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@
325325
approaching_target = TRUE
326326
else
327327
approaching_target = FALSE
328+
set_glide_size(DELAY_TO_GLIDE_SIZE(delay))
328329
walk_to(src, target, minimum_distance, delay)
329330

330331
/mob/living/simple_animal/hostile/adjustHealth(amount, updating_health = TRUE, forced = FALSE)

code/modules/mob/mob.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
update_config_movespeed()
8888
update_movespeed(TRUE)
8989

90-
/mob/New()
90+
/mob/New(loc, ...)
9191
// This needs to happen IMMEDIATELY. I'm sorry :(
9292
GenerateTag()
9393
return ..()

code/modules/mob/mob_movement.dm

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

156156
var/diagonal = (direct & (direct - 1)) && mob.loc == n
157157
if(diagonal) //moved diagonally successfully
158-
add_delay *= 1.414214 // sqrt(2)
158+
add_delay *= SQRT_2 // sqrt(2)
159159
mob.set_glide_size(DELAY_TO_GLIDE_SIZE(add_delay))
160160
move_delay += add_delay
161161
if(.) // If mob is null here, we deserve the runtime

yogstation/code/datums/components/walks.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
L.forceMove(T)
8282
finalize_move(L, T)
8383
if(direction & (direction - 1)) //extra delay for diagonals
84-
add_delay *= 1.414214 // sqrt(2)
84+
add_delay *= SQRT_2 // sqrt(2)
8585
L.set_glide_size(DELAY_TO_GLIDE_SIZE(add_delay))
8686
move_delay += add_delay
8787
return TRUE

0 commit comments

Comments
 (0)