Sticky note 10% fall chance

This commit is contained in:
Aronai Sieyes
2021-05-14 14:26:01 -04:00
parent 7bd9ac037a
commit 2df96b1e6f
@@ -6,8 +6,12 @@
/datum/persistent/paper/sticky/CreateEntryInstance(var/turf/creating, var/list/token)
var/atom/paper = ..()
if(paper)
paper.pixel_x = token["offset_x"]
paper.pixel_y = token["offset_y"]
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)
paper.color = token["color"]
return paper