|
535 | 535 | return |
536 | 536 |
|
537 | 537 | if (istype(storage_item, /obj/item/storage/backpack/duffelbag)) |
538 | | - to_chat(user, span_notice("You try to unzip [living_source]'s [storage_item]. Hopefully they don't notice.")) |
| 538 | + to_chat(user, span_notice("You try to unzip [living_source]'s [storage_item.name]. Hopefully they don't notice.")) |
539 | 539 | playsound(living_source, 'sound/items/zip.ogg', 100, TRUE) // obnoxiously loud |
540 | 540 | else |
541 | | - to_chat(user, span_notice("You try to pull something out of [living_source]'s [storage_item].")) |
| 541 | + to_chat(user, span_notice("You try to pull something out of [living_source]'s [storage_item.name].")) |
542 | 542 |
|
543 | | - var/log_message = "[key_name(living_source)] is being pickpocketed by [key_name(user)] ([storage_item])" |
| 543 | + var/log_message = "[key_name(living_source)] is being pickpocketed by [key_name(user)] ([storage_item.name])" |
544 | 544 | living_source.log_message(log_message, LOG_ATTACK, color="red") |
545 | 545 | user.log_message(log_message, LOG_ATTACK, color="red", log_globally=FALSE) |
546 | 546 | storage_item.add_fingerprint(user) |
547 | 547 |
|
548 | 548 | if (!do_after(user, POCKET_STRIP_DELAY, living_source, interaction_key = REF(storage_item))) |
549 | | - to_chat(living_source, span_warning("You feel your [storage_item] being fumbled with!")) |
| 549 | + to_chat(living_source, span_warning("You feel your [storage_item.name] being fumbled with!")) |
550 | 550 | return |
551 | 551 |
|
552 | 552 | var/list/atom/lootables = storage.contents() |
553 | 553 | if (lootables.len == 0) |
554 | | - to_chat(user, span_notice("You couldn't find anything inside [living_source]'s [storage_item].")) |
| 554 | + to_chat(user, span_notice("You couldn't find anything inside [living_source]'s [storage_item.name].")) |
555 | 555 | return |
556 | 556 |
|
557 | 557 | var/obj/item/loot = pick(lootables) |
558 | 558 | if (!istype(loot)) |
559 | | - to_chat(user, span_notice("You found \a [loot] inside [living_source]'s [storage_item] but couldn't pull it out.")) |
| 559 | + to_chat(user, span_notice("You found \a [loot] inside [living_source]'s [storage_item.name] but couldn't pull it out.")) |
560 | 560 | return |
561 | 561 |
|
562 | | - var/log_message_success = "[key_name(living_source)]'s [loot] was successfully pickpocketed by [key_name(user)] ([storage_item])" |
| 562 | + var/log_message_success = "[key_name(living_source)]'s [loot] was successfully pickpocketed by [key_name(user)] ([storage_item.name])" |
563 | 563 | living_source.log_message(log_message_success, LOG_ATTACK, color="red") |
564 | 564 | user.log_message(log_message_success, LOG_ATTACK, color="red", log_globally=FALSE) |
565 | 565 | loot.add_fingerprint(user) |
|
0 commit comments