Merge pull request #10370 from VOREStation/upstream-merge-8087

[MIRROR] SSpersistence tweaks
This commit is contained in:
Aronai Sieyes
2021-05-27 12:30:12 -04:00
committed by Chompstation Bot
parent bbafe17f3b
commit f6bcad07df
2 changed files with 282 additions and 280 deletions

View File

@@ -6,12 +6,14 @@
/datum/persistent/paper/sticky/CreateEntryInstance(var/turf/creating, var/list/token)
var/atom/paper = ..()
if(paper)
//VOREStation add - sometimes they fall off
if(prob(90))
paper.pixel_x = token["offset_x"]
paper.pixel_y = token["offset_y"]
else
paper.pixel_x = rand(-5,5)
paper.pixel_y = rand(-5,5)
//VOREStation add end
paper.color = token["color"]
return paper