This commit is contained in:
kevinz000
2017-09-01 06:58:31 -07:00
parent b193d77c1c
commit ddb49cd1ca

View File

@@ -9,21 +9,17 @@
/proc/handle_roundstart_items(mob/living/M)
if(!istype(M) || !M.ckey || !M.mind)
to_chat(world, "DEBUG: handle_roundstart_items: No ckey, mind, or not a mob.")
return FALSE
return load_itemlist_to_mob(M, parse_custom_roundstart_items(M.ckey, M.name, M.mind.assigned_role, M.mind.special_role), TRUE, TRUE, FALSE)
//Just incase there's extra mob selections in the future.....
/proc/load_itemlist_to_mob(mob/living/L, list/itemlist, drop_on_floor_if_full = TRUE, load_to_all_slots = TRUE, replace_slots = FALSE)
to_chat(world, "load_itemlist_to_mob([L], [itemlist], [drop_on_floor_if_full], [load_to_all_slots], [replace_slots])")
if(!istype(L) || !islist(itemlist))
to_chat(world, "DEBUG: load_itemlist_to_mob: not a mob or not an itemlist")
return FALSE
var/loading_mode = DROP_TO_FLOOR
var/turf/current_turf = get_turf(L)
if(ishuman(L))
loading_mode = LOADING_TO_HUMAN
to_chat(world, "load_itemlist_to_mob:loading_mode [loading_mode] current_turf [current_turf]")
switch(loading_mode)
if(DROP_TO_FLOOR)
for(var/I in itemlist)
@@ -38,7 +34,6 @@
/proc/load_itemlist_to_human(mob/living/carbon/human/H, list/itemlist, drop_on_floor_if_full = TRUE, load_to_all_slots = TRUE, replace_slots = FALSE)
if(!istype(H) || !islist(itemlist))
to_chat(world, "DEBUG: load_itemlist_to_human: Not a human or not an itemlist")
return FALSE
var/turf/T = get_turf(H)
for(var/item in itemlist)