|
536 | 536 | user.visible_message("[user] unfastens the Gygax Armor Plates.", span_notice("You unfasten the Gygax Armor Plates.")) |
537 | 537 | return TRUE |
538 | 538 |
|
539 | | -/datum/component/construction/unordered/mecha_chassis/firefighter |
540 | | - result = /datum/component/construction/mecha/firefighter |
541 | | - steps = list( |
542 | | - /obj/item/mecha_parts/part/ripley_torso, |
543 | | - /obj/item/mecha_parts/part/ripley_left_arm, |
544 | | - /obj/item/mecha_parts/part/ripley_right_arm, |
545 | | - /obj/item/mecha_parts/part/ripley_left_leg, |
546 | | - /obj/item/mecha_parts/part/ripley_right_leg, |
547 | | - /obj/item/clothing/suit/fire |
548 | | - ) |
549 | | - |
550 | | -/datum/component/construction/mecha/firefighter |
551 | | - result = /obj/mecha/working/ripley/firefighter |
552 | | - base_icon = "fireripley" |
553 | | - |
554 | | - circuit_control = /obj/item/circuitboard/mecha/ripley/main |
555 | | - circuit_periph = /obj/item/circuitboard/mecha/ripley/peripherals |
556 | | - |
557 | | - inner_plating = /obj/item/stack/sheet/plasteel |
558 | | - inner_plating_amount = 5 |
559 | | - |
560 | | -/datum/component/construction/mecha/firefighter/get_outer_plating_steps() |
561 | | - return list( |
562 | | - list( |
563 | | - "key" = /obj/item/stack/sheet/plasteel, |
564 | | - "amount" = 5, |
565 | | - "back_key" = TOOL_WELDER, |
566 | | - "desc" = "Internal armor is welded." |
567 | | - ), |
568 | | - |
569 | | - list( |
570 | | - "key" = /obj/item/stack/sheet/plasteel, |
571 | | - "amount" = 5, |
572 | | - "back_key" = TOOL_CROWBAR, |
573 | | - "desc" = "External armor is being installed." |
574 | | - ), |
575 | | - |
576 | | - list( |
577 | | - "key" = TOOL_WRENCH, |
578 | | - "back_key" = TOOL_CROWBAR, |
579 | | - "desc" = "External armor is installed." |
580 | | - ), |
581 | | - |
582 | | - list( |
583 | | - "key" = TOOL_WELDER, |
584 | | - "back_key" = TOOL_WRENCH, |
585 | | - "desc" = "External armor is wrenched." |
586 | | - ), |
587 | | -) |
588 | | - |
589 | | -/datum/component/construction/mecha/firefighter/custom_action(obj/item/I, mob/living/user, diff) |
590 | | - if(!..()) |
591 | | - return FALSE |
592 | | - |
593 | | - //TODO: better messages. |
594 | | - switch(index) |
595 | | - if(1) |
596 | | - user.visible_message("[user] connects [parent] hydraulic systems", span_notice("You connect [parent] hydraulic systems.")) |
597 | | - if(2) |
598 | | - if(diff==FORWARD) |
599 | | - user.visible_message("[user] activates [parent] hydraulic systems.", span_notice("You activate [parent] hydraulic systems.")) |
600 | | - else |
601 | | - user.visible_message("[user] disconnects [parent] hydraulic systems", span_notice("You disconnect [parent] hydraulic systems.")) |
602 | | - if(3) |
603 | | - if(diff==FORWARD) |
604 | | - user.visible_message("[user] adds the wiring to [parent].", span_notice("You add the wiring to [parent].")) |
605 | | - else |
606 | | - user.visible_message("[user] deactivates [parent] hydraulic systems.", span_notice("You deactivate [parent] hydraulic systems.")) |
607 | | - if(4) |
608 | | - if(diff==FORWARD) |
609 | | - user.visible_message("[user] adjusts the wiring of [parent].", span_notice("You adjust the wiring of [parent].")) |
610 | | - else |
611 | | - user.visible_message("[user] removes the wiring from [parent].", span_notice("You remove the wiring from [parent].")) |
612 | | - if(5) |
613 | | - if(diff==FORWARD) |
614 | | - user.visible_message("[user] installs [I] into [parent].", span_notice("You install [I] into [parent].")) |
615 | | - else |
616 | | - user.visible_message("[user] disconnects the wiring of [parent].", span_notice("You disconnect the wiring of [parent].")) |
617 | | - if(6) |
618 | | - if(diff==FORWARD) |
619 | | - user.visible_message("[user] secures the mainboard.", span_notice("You secure the mainboard.")) |
620 | | - else |
621 | | - user.visible_message("[user] removes the central control module from [parent].", span_notice("You remove the central computer mainboard from [parent].")) |
622 | | - if(7) |
623 | | - if(diff==FORWARD) |
624 | | - user.visible_message("[user] installs [I]into [parent].", span_notice("You install [I]into [parent].")) |
625 | | - else |
626 | | - user.visible_message("[user] unfastens the mainboard.", span_notice("You unfasten the mainboard.")) |
627 | | - if(8) |
628 | | - if(diff==FORWARD) |
629 | | - user.visible_message("[user] secures the peripherals control module.", span_notice("You secure the peripherals control module.")) |
630 | | - else |
631 | | - user.visible_message("[user] removes the peripherals control module from [parent].", span_notice("You remove the peripherals control module from [parent].")) |
632 | | - if(9) |
633 | | - if(diff==FORWARD) |
634 | | - user.visible_message("[user] installs [I] into [parent].", span_notice("You install [I] into [parent].")) |
635 | | - else |
636 | | - user.visible_message("[user] unfastens the peripherals control module.", span_notice("You unfasten the peripherals control module.")) |
637 | | - if(10) |
638 | | - if(diff==FORWARD) |
639 | | - user.visible_message("[user] secures the scanner module.", span_notice("You secure the scanner module.")) |
640 | | - else |
641 | | - user.visible_message("[user] removes the scanner module from [parent].", span_notice("You remove the scanner module from [parent].")) |
642 | | - if(11) |
643 | | - if(diff==FORWARD) |
644 | | - user.visible_message("[user] installs [I] to [parent].", span_notice("You install [I] to [parent].")) |
645 | | - else |
646 | | - user.visible_message("[user] unfastens the scanner module.", span_notice("You unfasten the scanner module.")) |
647 | | - if(12) |
648 | | - if(diff==FORWARD) |
649 | | - user.visible_message("[user] secures the capacitor.", span_notice("You secure the capacitor.")) |
650 | | - else |
651 | | - user.visible_message("[user] removes the capacitor from [parent].", span_notice("You remove the capacitor from [parent].")) |
652 | | - if(13) |
653 | | - if(diff==FORWARD) |
654 | | - user.visible_message("[user] installs [I] into [parent].", span_notice("You install [I] into [parent].")) |
655 | | - else |
656 | | - user.visible_message("[user] unfastens the capacitor.", span_notice("You unfasten the capacitor.")) |
657 | | - if(14) |
658 | | - if(diff==FORWARD) |
659 | | - user.visible_message("[user] secures the power cell.", span_notice("You secure the power cell.")) |
660 | | - else |
661 | | - user.visible_message("[user] pries the power cell from [parent].", span_notice("You pry the power cell from [parent].")) |
662 | | - if(15) |
663 | | - if(diff==FORWARD) |
664 | | - user.visible_message("[user] installs the internal armor layer to [parent].", span_notice("You install the internal armor layer to [parent].")) |
665 | | - else |
666 | | - user.visible_message("[user] unfastens the power cell.", span_notice("You unfasten the power cell.")) |
667 | | - if(16) |
668 | | - if(diff==FORWARD) |
669 | | - user.visible_message("[user] secures the internal armor layer.", span_notice("You secure the internal armor layer.")) |
670 | | - else |
671 | | - user.visible_message("[user] pries internal armor layer from [parent].", span_notice("You pry internal armor layer from [parent].")) |
672 | | - if(17) |
673 | | - if(diff==FORWARD) |
674 | | - user.visible_message("[user] welds the internal armor layer to [parent].", span_notice("You weld the internal armor layer to [parent].")) |
675 | | - else |
676 | | - user.visible_message("[user] unfastens the internal armor layer.", span_notice("You unfasten the internal armor layer.")) |
677 | | - if(18) |
678 | | - if(diff==FORWARD) |
679 | | - user.visible_message("[user] starts to install the external armor layer to [parent].", span_notice("You install the external armor layer to [parent].")) |
680 | | - else |
681 | | - user.visible_message("[user] cuts the internal armor layer from [parent].", span_notice("You cut the internal armor layer from [parent].")) |
682 | | - if(19) |
683 | | - if(diff==FORWARD) |
684 | | - user.visible_message("[user] installs the external reinforced armor layer to [parent].", span_notice("You install the external reinforced armor layer to [parent].")) |
685 | | - else |
686 | | - user.visible_message("[user] removes the external armor from [parent].", span_notice("You remove the external armor from [parent].")) |
687 | | - if(20) |
688 | | - if(diff==FORWARD) |
689 | | - user.visible_message("[user] secures the external armor layer.", span_notice("You secure the external reinforced armor layer.")) |
690 | | - else |
691 | | - user.visible_message("[user] pries external armor layer from [parent].", span_notice("You pry external armor layer from [parent].")) |
692 | | - if(21) |
693 | | - if(diff==FORWARD) |
694 | | - user.visible_message("[user] welds the external armor layer to [parent].", span_notice("You weld the external armor layer to [parent].")) |
695 | | - else |
696 | | - user.visible_message("[user] unfastens the external armor layer.", span_notice("You unfasten the external armor layer.")) |
697 | | - return TRUE |
698 | | - |
699 | 539 | /datum/component/construction/unordered/mecha_chassis/clarke |
700 | 540 | result = /datum/component/construction/mecha/clarke |
701 | 541 | steps = list( |
|
0 commit comments