[09:18:04] Runtime in card_slot.dm, line 72: Cannot execute 1.put in hands().

Usage of the try_eject proc is an eclectic mix of unimplemented behaviour and incorrect argument order, with behaviour that can cause runtimes.

Prototype for the try_eject proc wasn't even implemented properly by children. Nothing implemented it used the slots arg, so I modified the base prototype. Cleaned up various proc calls. Should no longer have incorrect arg-based runtimes.
This commit is contained in:
Timberpoes
2020-11-06 22:06:20 -08:00
committed by GitHub
parent 3c152f68a0
commit fb6a1f4129
4 changed files with 16 additions and 8 deletions
@@ -42,7 +42,7 @@
switch(action)
if("ejectid")
if(id_card)
card_slot.try_eject(TRUE, usr)
card_slot.try_eject(usr, TRUE)
if("selectid")
if(!id_card)
return