|
877 | 877 | animate(src, pixel_y = get_standard_pixel_y_offset(lying), time = 1 SECONDS) |
878 | 878 | setMovetype(movement_type & ~FLOATING) |
879 | 879 |
|
880 | | -// The src mob is trying to strip an item from someone |
881 | | -// Override if a certain type of mob should be behave differently when stripping items (can't, for example) |
882 | | -/mob/living/stripPanelUnequip(obj/item/what, mob/who, where) |
883 | | - if(!what.canStrip(who)) |
884 | | - to_chat(src, span_warning("You can't remove \the [what.name], it appears to be stuck!")) |
885 | | - return |
886 | | - who.visible_message(span_danger("[src] tries to remove [who]'s [what.name]."), \ |
887 | | - span_userdanger("[src] tries to remove [who]'s [what.name].")) |
888 | | - what.add_fingerprint(src) |
889 | | - SEND_SIGNAL(what, COMSIG_ITEM_PRESTRIP) |
890 | | - if(do_after(src, what.strip_delay, who, interaction_key = REF(what))) |
891 | | - if(what && Adjacent(who)) |
892 | | - if(islist(where)) |
893 | | - var/list/L = where |
894 | | - if(what == who.get_item_for_held_index(L[2])) |
895 | | - if(what.doStrip(src, who)) |
896 | | - log_combat(src, who, "stripped [what] off") |
897 | | - if(what == who.get_item_by_slot(where)) |
898 | | - if(what.doStrip(src, who)) |
899 | | - log_combat(src, who, "stripped [what] off") |
900 | | - |
901 | | -// The src mob is trying to place an item on someone |
902 | | -// Override if a certain mob should be behave differently when placing items (can't, for example) |
903 | | -/mob/living/stripPanelEquip(obj/item/what, mob/who, where) |
904 | | - what = src.get_active_held_item() |
905 | | - if(what && (HAS_TRAIT(what, TRAIT_NODROP))) |
906 | | - to_chat(src, span_warning("You can't put \the [what.name] on [who], it's stuck to your hand!")) |
907 | | - return |
908 | | - if(what) |
909 | | - var/list/where_list |
910 | | - var/final_where |
911 | | - |
912 | | - if(islist(where)) |
913 | | - where_list = where |
914 | | - final_where = where[1] |
915 | | - else |
916 | | - final_where = where |
917 | | - |
918 | | - if(!what.mob_can_equip(who, src, final_where, TRUE, TRUE)) |
919 | | - to_chat(src, span_warning("\The [what.name] doesn't fit in that place!")) |
920 | | - return |
921 | | - |
922 | | - visible_message(span_notice("[src] tries to put [what] on [who].")) |
923 | | - if(do_after(src, what.equip_delay_other, who)) |
924 | | - if(what && Adjacent(who) && what.mob_can_equip(who, src, final_where, TRUE, TRUE)) |
925 | | - if(temporarilyRemoveItemFromInventory(what)) |
926 | | - if(where_list) |
927 | | - if(!who.put_in_hand(what, where_list[2])) |
928 | | - what.forceMove(get_turf(who)) |
929 | | - else |
930 | | - who.equip_to_slot(what, where, TRUE) |
931 | | - |
932 | 880 | /mob/living/singularity_pull(S, current_size) |
933 | 881 | ..() |
934 | 882 | if(current_size >= STAGE_SIX) //your puny magboots/wings/whatever will not save you against supermatter singularity |
|
0 commit comments