mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 09:08:30 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user