mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 04:02:31 +00:00
Cloning now requires meat for biomass.
This commit is contained in:
1
code/game/jobs/departments.dm
Normal file
1
code/game/jobs/departments.dm
Normal file
@@ -0,0 +1 @@
|
|||||||
|
var/list/departments = list("Command", "Medical", "Engineering", "Security", "Civilian", "Cargo")
|
||||||
@@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
//Potential replacement for genetics revives or something I dunno (?)
|
//Potential replacement for genetics revives or something I dunno (?)
|
||||||
|
|
||||||
|
#define CLONE_BIOMASS 150
|
||||||
|
|
||||||
/obj/machinery/clonepod
|
/obj/machinery/clonepod
|
||||||
anchored = 1
|
anchored = 1
|
||||||
name = "cloning pod"
|
name = "cloning pod"
|
||||||
@@ -18,6 +20,7 @@
|
|||||||
var/mess = 0 //Need to clean out it if it's full of exploded clone.
|
var/mess = 0 //Need to clean out it if it's full of exploded clone.
|
||||||
var/attempting = 0 //One clone attempt at a time thanks
|
var/attempting = 0 //One clone attempt at a time thanks
|
||||||
var/eject_wait = 0 //Don't eject them as soon as they are created fuckkk
|
var/eject_wait = 0 //Don't eject them as soon as they are created fuckkk
|
||||||
|
var/biomass = CLONE_BIOMASS
|
||||||
|
|
||||||
//The return of data disks?? Just for transferring between genetics machine/cloning machine.
|
//The return of data disks?? Just for transferring between genetics machine/cloning machine.
|
||||||
//TO-DO: Make the genetics machine accept them.
|
//TO-DO: Make the genetics machine accept them.
|
||||||
@@ -271,6 +274,11 @@
|
|||||||
src.locked = 0
|
src.locked = 0
|
||||||
src.go_out()
|
src.go_out()
|
||||||
return
|
return
|
||||||
|
else if (istype(W, /obj/item/weapon/reagent_containers/food/snacks/meat))
|
||||||
|
biomass += 50
|
||||||
|
user.drop_item()
|
||||||
|
del(W)
|
||||||
|
return
|
||||||
else
|
else
|
||||||
..()
|
..()
|
||||||
|
|
||||||
|
|||||||
@@ -202,6 +202,9 @@
|
|||||||
|
|
||||||
dat += "Lock status: <a href='byond://?src=\ref[src];lock=1'>[src.scanner.locked ? "Locked" : "Unlocked"]</a><br>"
|
dat += "Lock status: <a href='byond://?src=\ref[src];lock=1'>[src.scanner.locked ? "Locked" : "Unlocked"]</a><br>"
|
||||||
|
|
||||||
|
if (!isnull(src.pod1))
|
||||||
|
dat += "Biomass: <i>[src.pod1.biomass]</i><br>"
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
dat += "<h4>Database Functions</h4>"
|
dat += "<h4>Database Functions</h4>"
|
||||||
dat += "<a href='byond://?src=\ref[src];menu=2'>View Records</a><br>"
|
dat += "<a href='byond://?src=\ref[src];menu=2'>View Records</a><br>"
|
||||||
@@ -243,8 +246,12 @@
|
|||||||
dat += "<br>" //Keeping a line empty for appearances I guess.
|
dat += "<br>" //Keeping a line empty for appearances I guess.
|
||||||
|
|
||||||
dat += {"<b>UI:</b> [src.active_record.fields["UI"]]<br>
|
dat += {"<b>UI:</b> [src.active_record.fields["UI"]]<br>
|
||||||
<b>SE:</b> [src.active_record.fields["SE"]]<br><br>
|
<b>SE:</b> [src.active_record.fields["SE"]]<br><br>"}
|
||||||
<a href='byond://?src=\ref[src];clone=\ref[src.active_record]'>Clone</a><br>"}
|
|
||||||
|
if(pod1 && pod1.biomass >= CLONE_BIOMASS)
|
||||||
|
dat += {"<a href='byond://?src=\ref[src];clone=\ref[src.active_record]'>Clone</a><br>"}
|
||||||
|
else
|
||||||
|
dat += {"<b>Unsufficient biomass</b><br>"}
|
||||||
|
|
||||||
if(4)
|
if(4)
|
||||||
if (!src.active_record)
|
if (!src.active_record)
|
||||||
@@ -378,6 +385,8 @@
|
|||||||
temp = "Error: No Clonepod detected."
|
temp = "Error: No Clonepod detected."
|
||||||
else if(pod1.occupant)
|
else if(pod1.occupant)
|
||||||
temp = "Error: Clonepod is currently occupied."
|
temp = "Error: Clonepod is currently occupied."
|
||||||
|
else if(pod1.biomass < CLONE_BIOMASS)
|
||||||
|
temp = "Error: Not enough biomass."
|
||||||
else if(pod1.mess)
|
else if(pod1.mess)
|
||||||
temp = "Error: Clonepod malfunction."
|
temp = "Error: Clonepod malfunction."
|
||||||
else if(!config.revival_cloning)
|
else if(!config.revival_cloning)
|
||||||
@@ -389,6 +398,8 @@
|
|||||||
del(C)
|
del(C)
|
||||||
menu = 1
|
menu = 1
|
||||||
else
|
else
|
||||||
|
pod1.biomass -= CLONE_BIOMASS
|
||||||
|
|
||||||
var/mob/selected = find_dead_player("[C.fields["ckey"]]")
|
var/mob/selected = find_dead_player("[C.fields["ckey"]]")
|
||||||
selected << 'chime.ogg' //probably not the best sound but I think it's reasonable
|
selected << 'chime.ogg' //probably not the best sound but I think it's reasonable
|
||||||
var/answer = alert(selected,"Do you want to return to life?","Cloning","Yes","No")
|
var/answer = alert(selected,"Do you want to return to life?","Cloning","Yes","No")
|
||||||
|
|||||||
@@ -59,6 +59,14 @@ should be listed in the changelog upon commit though. Thanks. -->
|
|||||||
|
|
||||||
<!-- To take advantage of the pretty new format (well it was new when I wrote this anyway), open the "add-to-changelog.html" file in any browser and add the stuff and then generate the html code and paste it here -->
|
<!-- To take advantage of the pretty new format (well it was new when I wrote this anyway), open the "add-to-changelog.html" file in any browser and add the stuff and then generate the html code and paste it here -->
|
||||||
|
|
||||||
|
<div class="commit sansserif">
|
||||||
|
<h2 class="date">March 11th 2013</h2>
|
||||||
|
<h3 class="author">CIB updated:</h3>
|
||||||
|
<ul class="changes bgimages16">
|
||||||
|
<li class="rscadd">Cloning now requires you to put slabs of meat into the cloning pod to replenish biomass.</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="commit sansserif">
|
<div class="commit sansserif">
|
||||||
<h2 class="date">March 9th 2013</h2>
|
<h2 class="date">March 9th 2013</h2>
|
||||||
<h3 class="author">Cael Aislinn updated:</h3>
|
<h3 class="author">Cael Aislinn updated:</h3>
|
||||||
|
|||||||
Reference in New Issue
Block a user