mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 14:00:18 +01:00
Fixed a runtime on deletion of paper stacks due to erroneous conversion of datum bracket access (#19891)
Fixed a runtime on deletion of paper stacks due to erroneous conversion of datum bracket access. Some DMDocs. Potentially fixes #19888
This commit is contained in:
@@ -10,9 +10,16 @@
|
||||
throw_speed = 1
|
||||
layer = ABOVE_OBJ_LAYER
|
||||
attack_verb = list("bapped")
|
||||
var/page = 1 // current page
|
||||
var/list/pages = list() // Ordered list of pages as they are to be displayed. Can be different order than src.contents.
|
||||
var/amount = 0 // How many sheet
|
||||
|
||||
/// current page
|
||||
var/page = 1
|
||||
|
||||
/// Ordered list of pages as they are to be displayed. Can be different order than src.contents.
|
||||
var/list/pages = list()
|
||||
|
||||
/// How many sheet
|
||||
var/amount = 0
|
||||
|
||||
drop_sound = 'sound/items/drop/paper.ogg'
|
||||
pickup_sound = 'sound/items/pickup/paper.ogg'
|
||||
|
||||
@@ -203,7 +210,7 @@
|
||||
|
||||
|
||||
if(pages.len <= 1)
|
||||
var/obj/item/paper/P = src.vars[1]
|
||||
var/obj/item/paper/P = src.pages[1]
|
||||
if(istype(loc, /obj/item/gripper)) //Hacky but without it there's a ghost icon with grippers and it all spills on the floor.
|
||||
var/obj/item/gripper/G = loc
|
||||
G.drop(get_turf(src), usr, FALSE)
|
||||
|
||||
Reference in New Issue
Block a user