mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
Random pixel shift for dropped/thrown objects (#45155)
* pixels * offset for any throw, critical bedsheet bugfix * nyeh * might as well (autodoc) * renamed proc * removed redundant src * moved call from dropped() to dropItemToGround() * handles storage dumping, customizable max offset * adjusted values * inline
This commit is contained in:
@@ -284,6 +284,8 @@
|
||||
if(I.loc != real_location)
|
||||
continue
|
||||
remove_from_storage(I, target)
|
||||
I.pixel_x = rand(-10,10)
|
||||
I.pixel_y = rand(-10,10)
|
||||
if(trigger_on_found && I.on_found())
|
||||
return FALSE
|
||||
if(TICK_CHECK)
|
||||
|
||||
Reference in New Issue
Block a user