mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
Makes borgs take damage from being flung into objects (#23000)
* we are so back * Makes it compile * Vendors, walls, windows and consoles done * Blob and living mobs * Magpulses are now based on traits * Gives borgs the trait by action button * Fixes modsuits * Update code/game/objects/objs.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/game/turfs/turf.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Update code/modules/mob/living/living.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> * Fixes Thunk * Actually fixes it * I took an L (away from the trait) * One proc now * Update code/modules/clothing/shoes/magboots.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Update code/modules/clothing/shoes/magboots.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> --------- Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
This commit is contained in:
@@ -456,14 +456,14 @@
|
||||
if(exposed_temperature > (T0C + heat_resistance))
|
||||
take_damage(round(exposed_volume / 100), BURN, 0, 0)
|
||||
|
||||
/obj/structure/window/hit_by_thrown_carbon(mob/living/carbon/human/C, datum/thrownthing/throwingdatum, damage, mob_hurt, self_hurt)
|
||||
/obj/structure/window/hit_by_thrown_mob(mob/living/C, datum/thrownthing/throwingdatum, damage, mob_hurt, self_hurt)
|
||||
var/shattered = FALSE
|
||||
if(damage * 2 >= obj_integrity && shardtype && !mob_hurt)
|
||||
shattered = TRUE
|
||||
var/obj/item/S = new shardtype(loc)
|
||||
S.embedded_ignore_throwspeed_threshold = TRUE
|
||||
S.throw_impact(C)
|
||||
S.embedded_ignore_throwspeed_threshold = FALSE
|
||||
var/obj/item/shard = new shardtype(loc)
|
||||
shard.embedded_ignore_throwspeed_threshold = TRUE
|
||||
shard.throw_impact(C)
|
||||
shard.embedded_ignore_throwspeed_threshold = FALSE
|
||||
damage *= (4/3) //Inverts damage loss from being a structure, since glass breaking on you hurts
|
||||
var/turf/T = get_turf(src)
|
||||
for(var/obj/structure/grille/G in T.contents)
|
||||
|
||||
Reference in New Issue
Block a user