forked from infinitystation/Baystation12
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Описание Work in progress ## Основные изменения Добавление ИПС обусловленной ЛОРом им возможности, сидеть в интернетике и пользоваться программами без компьютера. Ведь компьютер у них в голове ## Скриншоты ![image](https://github.com/ss220-space/Baystation12/assets/61974560/1690b988-6ca4-4cd3-8d75-2f08d1b2d8cb) ![image](https://github.com/ss220-space/Baystation12/assets/61974560/f6a61ead-d5c9-489b-a177-746f4a5d4c0c) ## Changelog <!-- С помощью этого раздела можно подготовить список изменений, которые попадут в игровой чейндж-лог. ---> <!-- Вам нужно указать префикс изменения (Он идёт до двоеточия) и дать описание, как на примере. ---> <!-- Префиксы можно использовать несколько раз. ---> <!-- Если Вы не планируете добавлять записи в чейндж-лог - просто удалите из пулл-реквеста этот раздел. ---> :cl: rscadd: IPC exonet organ /:cl:
- Loading branch information
Showing
24 changed files
with
210 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
code/modules/modular_computers/computers/subtypes/dev_exonet_connection_system.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//// INTERNAL IPCs COMPUTER | ||
/obj/item/modular_computer/ecs | ||
name = "exonet connection system" | ||
desc = "A cirquit with some ports and wires." | ||
icon = 'icons/obj/surgery.dmi' | ||
icon_state = "ecs_on" | ||
icon_state_unpowered = "ecs_off" | ||
anchored = FALSE | ||
w_class = ITEM_SIZE_NORMAL | ||
base_idle_power_usage = 5 | ||
base_active_power_usage = 50 | ||
light_strength = 0 | ||
max_damage = 100 | ||
broken_damage = 60 | ||
max_hardware_size = 2 | ||
hardware_flag = PROGRAM_LAPTOP | ||
exonets_ipc_computer = TRUE | ||
|
||
|
||
/obj/item/modular_computer/ecs/install_default_hardware() | ||
..() | ||
processor_unit = new/obj/item/stock_parts/computer/processor_unit(src) | ||
hard_drive = new/obj/item/stock_parts/computer/hard_drive/advanced(src) | ||
network_card = new/obj/item/stock_parts/computer/network_card/advanced(src) | ||
battery_module = new/obj/item/stock_parts/computer/battery_module/converter(src) | ||
|
||
/obj/item/modular_computer/ecs/install_default_programs() | ||
..() | ||
hard_drive.store_file(new/datum/computer_file/program/email_client()) | ||
hard_drive.store_file(new/datum/computer_file/program/wordprocessor()) | ||
|
||
|
||
/obj/item/modular_computer/ecs/attack_self(var/mob/user) // Оставляем возможность вызывать окно только через абилку ИПСа | ||
return | ||
|
||
|
||
/obj/item/modular_computer/ecs/proc/open_terminal_ecs(var/mob/user) | ||
var/datum/extension/interactive/ntos/os = get_extension(src, /datum/extension/interactive/ntos) | ||
return os.open_terminal(user) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/obj/item/organ/internal/ecs | ||
name = "exonet connection port" | ||
icon_state = "setup_large" | ||
organ_tag = BP_EXONET | ||
parent_organ = BP_HEAD | ||
status = ORGAN_ROBOTIC | ||
desc = "The internal port is designed to establish communication between the positronic brain and the computer." | ||
w_class = ITEM_SIZE_NORMAL | ||
max_damage = 100 | ||
var/obj/item/modular_computer/ecs/computer = /obj/item/modular_computer/ecs | ||
var/open = FALSE | ||
|
||
|
||
/obj/item/organ/internal/ecs/Initialize() | ||
if(ispath(computer)) | ||
computer = new computer(src) | ||
. = ..() | ||
|
||
|
||
/obj/item/organ/internal/ecs/Process() | ||
..() | ||
if(!owner) | ||
return | ||
if(owner.stat == DEAD) | ||
return | ||
if(!computer) | ||
return | ||
if(computer.battery_module.battery.charge < (computer.battery_module.battery.maxcharge)) | ||
transfer_charge() | ||
|
||
/obj/item/organ/internal/ecs/proc/transfer_charge() | ||
var/obj/item/organ/internal/cell/potato = owner.internal_organs_by_name[BP_CELL] | ||
var/charge_needed =(computer.battery_module.battery.maxcharge - computer.battery_module.battery.charge) | ||
if(charge_needed) | ||
potato.cell.charge -= charge_needed | ||
computer.battery_module.battery.charge += charge_needed | ||
|
||
/obj/item/organ/internal/ecs/attackby(obj/item/W, mob/user) | ||
if(isScrewdriver(W)) | ||
if(open) | ||
open = FALSE | ||
to_chat(user, "<span class='notice'>You screw the exonet connection slot panel in place.</span>") | ||
else | ||
open = TRUE | ||
to_chat(user, "<span class='notice'>You unscrew the exonet connection slot panel.</span>") | ||
|
||
if(isCrowbar(W)) | ||
if(open) | ||
if(computer) | ||
user.put_in_hands(computer) | ||
to_chat(user, "<span class='notice'>You remove \the [computer] from \the [src].</span>") | ||
computer = null | ||
icon_state = "setup_large-open" | ||
|
||
if (istype(W, /obj/item/modular_computer/ecs)) | ||
if(open) | ||
if(computer) | ||
to_chat(user, "<span class ='warning'>There \the [computer] already installed.</span>") | ||
else if(user.unEquip(W, src)) | ||
computer = W | ||
to_chat(user, "<span class = 'notice'>You insert \the [computer].</span>") | ||
icon_state = "setup_large" | ||
|
||
|
||
/obj/item/organ/internal/ecs/proc/exonet(mob/user) | ||
if(!computer) | ||
to_chat(user, "<span class='warning'>You have no exonet connection system installed</span>") | ||
return | ||
if(!computer.enabled && computer.screen_on) | ||
return computer.turn_on(user) | ||
switch(alert("Open Terminal or interact with it?", "Open Terminal or interact with it?", "Interact", "Terminal", "Emergency Shutdown")) | ||
if("Interact") | ||
return computer.ui_interact(user) | ||
if("Terminal") | ||
return computer.open_terminal_ecs(user) | ||
if("Emergency Shutdown") | ||
return computer.emergency_shutdown(user) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.