[MIRROR] Cleans up try_eject proc prototype and various proc usages to fix some runtimes (#1609)

* Feex (#54716)

[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.

* Cleans up try_eject proc prototype and various proc usages to fix some runtimes

Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
SkyratBot
2020-11-07 16:43:03 +01:00
committed by GitHub
parent 1c7c288203
commit a608adb52e
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