Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
изменены пути клонилки
Browse files Browse the repository at this point in the history
  • Loading branch information
johncoder0 committed Jul 8, 2023
1 parent 8caa3e2 commit 52fa08d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
34 changes: 17 additions & 17 deletions modular_mithra/code/game/machinery/cloning.dm
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@


//Let's unlock this early I guess. Might be too early, needs tweaking.
/obj/machinery/clonepod/attackby(obj/item/weapon/W as obj, mob/user as mob)
/obj/machinery/clonepod/attackby(obj/item/W as obj, mob/user as mob)
if(istype(W, /obj/item/card/id)||istype(W, /obj/item/modular_computer/pda))
if(!check_access(W))
to_chat(user, "<span class='warning'>Access Denied.</span>")
Expand Down Expand Up @@ -342,7 +342,7 @@
//Disk stuff.
//The return of data disks?? Just for transferring between genetics machine/cloning machine.
//TO-DO: Make the genetics machine accept them.
/obj/item/weapon/disk/data
/obj/item/disk/data
name = "Cloning Data Disk"
icon = 'icons/obj/cloning.dmi'
icon_state = "datadisk0" //Gosh I hope syndies don't mistake them for the nuke disk.
Expand All @@ -351,15 +351,15 @@
var/datum/dna2/record/buf = null
var/read_only = 0 //Well,it's still a floppy disk

/obj/item/weapon/disk/data/proc/initializeDisk()
/obj/item/disk/data/proc/initializeDisk()
buf = new
buf.dna=new

/obj/item/weapon/disk/data/demo
/obj/item/disk/data/demo
name = "data disk - 'God Emperor of Mankind'"
read_only = 1

/obj/item/weapon/disk/data/demo/New()
/obj/item/disk/data/demo/New()
initializeDisk()
buf.types=DNA2_BUF_UE|DNA2_BUF_UI
//data = "066000033000000000AF00330660FF4DB002690"
Expand All @@ -370,11 +370,11 @@
//buf.dna.UI=list(0x0C8,0x0C8,0x0C8,0x0C8,0x0C8,0x0C8,0x000,0x000,0x000,0x000,0x161,0xFBD,0xDEF) // Farmer Jeff
buf.dna.UpdateUI()

/obj/item/weapon/disk/data/monkey
/obj/item/disk/data/monkey
name = "data disk - 'Mr. Muggles'"
read_only = 1

/obj/item/weapon/disk/data/demo/New()
/obj/item/disk/data/demo/New()
..()
initializeDisk()
buf.types=DNA2_BUF_SE
Expand All @@ -384,16 +384,16 @@
buf.dna.SE=new_SE
buf.dna.SetSEValueRange(GLOB.MONKEYBLOCK,0xDAC, 0xFFF)

/obj/item/weapon/disk/data/New()
/obj/item/disk/data/New()
..()
var/diskcolor = pick(0,1,2)
icon_state = "datadisk[diskcolor]"

/obj/item/weapon/disk/data/attack_self(mob/user as mob)
/obj/item/disk/data/attack_self(mob/user as mob)
read_only = !read_only
to_chat(user, "You flip the write-protect tab to [read_only ? "protected" : "unprotected"].")

/obj/item/weapon/disk/data/examine(mob/user)
/obj/item/disk/data/examine(mob/user)
..(user)
to_chat(user, text("The write-protect tab is set to [read_only ? "protected" : "unprotected"]."))
return
Expand All @@ -408,13 +408,13 @@

/obj/item/storage/box/disks/New()
..()
new /obj/item/weapon/disk/data(src)
new /obj/item/weapon/disk/data(src)
new /obj/item/weapon/disk/data(src)
new /obj/item/weapon/disk/data(src)
new /obj/item/weapon/disk/data(src)
new /obj/item/weapon/disk/data(src)
new /obj/item/weapon/disk/data(src)
new /obj/item/disk/data(src)
new /obj/item/disk/data(src)
new /obj/item/disk/data(src)
new /obj/item/disk/data(src)
new /obj/item/disk/data(src)
new /obj/item/disk/data(src)
new /obj/item/disk/data(src)

/*
* Manual -- A big ol' manual.
Expand Down
4 changes: 2 additions & 2 deletions modular_mithra/code/game/machinery/computer/cloning.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
var/menu = 1 //Which menu screen to display
var/list/records = list()
var/datum/dna2/record/active_record = null
var/obj/item/weapon/disk/data/diskette = null //Mostly so the geneticist can steal everything.
var/obj/item/disk/data/diskette = null //Mostly so the geneticist can steal everything.
var/loading = FALSE // Nice loading text


Expand Down Expand Up @@ -61,7 +61,7 @@
P.name = "[initial(P.name)] #[num++]"

/obj/machinery/computer/cloning/attackby(obj/item/W as obj, mob/user as mob)
if (istype(W, /obj/item/weapon/disk/data)) //INSERT SOME DISKETTES
if (istype(W, /obj/item/disk/data)) //INSERT SOME DISKETTES
if (!diskette)
user.drop_item()
W.loc = src
Expand Down

0 comments on commit 52fa08d

Please sign in to comment.