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:
Mickyan
2019-07-16 00:51:17 -07:00
committed by Rob Bailey
parent 2dee1d037d
commit e26abb7047
4 changed files with 10 additions and 0 deletions
@@ -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)