Fixed fixed drop items (#93492)

## About The Pull Request

The `NO_PIXEL_RANDOM_DROP` check was accidentally deleted in past
refactors

## Changelog

🆑 Melbert
fix: Certain toys and items (cardboard cutouts, toy singulo) no longer
randomize their offset when dropped (as intended)
/🆑
This commit is contained in:
MrMelbert
2025-10-19 04:13:53 +02:00
committed by GitHub
parent 61926e2c60
commit 3313c16e2a
+5 -2
View File
@@ -343,8 +343,11 @@
if(isnull(to_drop))
return
var/x_offset = rand(-6, 6)
var/y_offset = rand(-6, 6)
var/x_offset = 0
var/y_offset = 0
if(!(to_drop.item_flags & NO_PIXEL_RANDOM_DROP))
x_offset += rand(-6, 6)
y_offset += rand(-6, 6)
SEND_SIGNAL(src, COMSIG_MOB_DROPPING_ITEM)
if(!transfer_item_to_turf(to_drop, drop_location(), x_offset, y_offset, force, silent, invdrop))
return