mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
-A bot's setting can be tweaked by AIs now.
-Updated the changelog with a feature I forgot to mention. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5007 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -149,10 +149,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/obj/machinery/bot/attack_ai(mob/user as mob)
|
/obj/machinery/bot/attack_ai(mob/user as mob)
|
||||||
if (src.on)
|
src.attack_hand(user)
|
||||||
turn_off()
|
|
||||||
else
|
|
||||||
turn_on()
|
|
||||||
|
|
||||||
/******************************************************************/
|
/******************************************************************/
|
||||||
// Navigation procs
|
// Navigation procs
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ Status: []<BR>
|
|||||||
Behaviour controls are [src.locked ? "locked" : "unlocked"]<BR>
|
Behaviour controls are [src.locked ? "locked" : "unlocked"]<BR>
|
||||||
Maintenance panel panel is [src.open ? "opened" : "closed"]"},
|
Maintenance panel panel is [src.open ? "opened" : "closed"]"},
|
||||||
text("<A href='?src=\ref[src];operation=start'>[src.on ? "On" : "Off"]</A>"))
|
text("<A href='?src=\ref[src];operation=start'>[src.on ? "On" : "Off"]</A>"))
|
||||||
if(!src.locked)
|
if(!src.locked || issilicon(user))
|
||||||
dat += text({"<BR>Cleans Blood: []<BR>"}, text("<A href='?src=\ref[src];operation=blood'>[src.blood ? "Yes" : "No"]</A>"))
|
dat += text({"<BR>Cleans Blood: []<BR>"}, text("<A href='?src=\ref[src];operation=blood'>[src.blood ? "Yes" : "No"]</A>"))
|
||||||
dat += text({"<BR>Patrol station: []<BR>"}, text("<A href='?src=\ref[src];operation=patrol'>[src.should_patrol ? "Yes" : "No"]</A>"))
|
dat += text({"<BR>Patrol station: []<BR>"}, text("<A href='?src=\ref[src];operation=patrol'>[src.should_patrol ? "Yes" : "No"]</A>"))
|
||||||
// dat += text({"<BR>Beacon frequency: []<BR>"}, text("<A href='?src=\ref[src];operation=freq'>[src.beacon_freq]</A>"))
|
// dat += text({"<BR>Beacon frequency: []<BR>"}, text("<A href='?src=\ref[src];operation=freq'>[src.beacon_freq]</A>"))
|
||||||
@@ -170,7 +170,6 @@ text("<A href='?src=\ref[src];operation=oddbutton'>[src.oddbutton ? "Yes" : "No"
|
|||||||
visible_message("[src] makes an excited beeping booping sound!")
|
visible_message("[src] makes an excited beeping booping sound!")
|
||||||
|
|
||||||
if(src.screwloose && prob(5))
|
if(src.screwloose && prob(5))
|
||||||
visible_message("[src] leaks a drop of water. How strange.")
|
|
||||||
if(istype(loc,/turf/simulated))
|
if(istype(loc,/turf/simulated))
|
||||||
var/turf/simulated/T = src.loc
|
var/turf/simulated/T = src.loc
|
||||||
if(T.wet < 1)
|
if(T.wet < 1)
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ Maintenance panel panel is [src.open ? "opened" : "closed"]"},
|
|||||||
|
|
||||||
"<A href='?src=\ref[src];power=1'>[src.on ? "On" : "Off"]</A>" )
|
"<A href='?src=\ref[src];power=1'>[src.on ? "On" : "Off"]</A>" )
|
||||||
|
|
||||||
if(!src.locked)
|
if(!src.locked || issilicon(user))
|
||||||
if(!lasercolor)
|
if(!lasercolor)
|
||||||
dat += text({"<BR>
|
dat += text({"<BR>
|
||||||
Check for Weapon Authorization: []<BR>
|
Check for Weapon Authorization: []<BR>
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
dat += "Maintenance panel panel is [src.open ? "opened" : "closed"]<BR>"
|
dat += "Maintenance panel panel is [src.open ? "opened" : "closed"]<BR>"
|
||||||
dat += "Tiles left: [src.amount]<BR>"
|
dat += "Tiles left: [src.amount]<BR>"
|
||||||
dat += "Behvaiour controls are [src.locked ? "locked" : "unlocked"]<BR>"
|
dat += "Behvaiour controls are [src.locked ? "locked" : "unlocked"]<BR>"
|
||||||
if(!src.locked)
|
if(!src.locked || issilicon(user))
|
||||||
dat += "Improves floors: <A href='?src=\ref[src];operation=improve'>[src.improvefloors ? "Yes" : "No"]</A><BR>"
|
dat += "Improves floors: <A href='?src=\ref[src];operation=improve'>[src.improvefloors ? "Yes" : "No"]</A><BR>"
|
||||||
dat += "Finds tiles: <A href='?src=\ref[src];operation=tiles'>[src.eattiles ? "Yes" : "No"]</A><BR>"
|
dat += "Finds tiles: <A href='?src=\ref[src];operation=tiles'>[src.eattiles ? "Yes" : "No"]</A><BR>"
|
||||||
dat += "Make singles pieces of metal into tiles when empty: <A href='?src=\ref[src];operation=make'>[src.maketiles ? "Yes" : "No"]</A><BR>"
|
dat += "Make singles pieces of metal into tiles when empty: <A href='?src=\ref[src];operation=make'>[src.maketiles ? "Yes" : "No"]</A><BR>"
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
else
|
else
|
||||||
dat += "None Loaded"
|
dat += "None Loaded"
|
||||||
dat += "<br>Behaviour controls are [src.locked ? "locked" : "unlocked"]<hr>"
|
dat += "<br>Behaviour controls are [src.locked ? "locked" : "unlocked"]<hr>"
|
||||||
if(!src.locked)
|
if(!src.locked || issilicon(user))
|
||||||
dat += "<TT>Healing Threshold: "
|
dat += "<TT>Healing Threshold: "
|
||||||
dat += "<a href='?src=\ref[src];adj_threshold=-10'>--</a> "
|
dat += "<a href='?src=\ref[src];adj_threshold=-10'>--</a> "
|
||||||
dat += "<a href='?src=\ref[src];adj_threshold=-5'>-</a> "
|
dat += "<a href='?src=\ref[src];adj_threshold=-5'>-</a> "
|
||||||
@@ -143,7 +143,7 @@
|
|||||||
else
|
else
|
||||||
turn_on()
|
turn_on()
|
||||||
|
|
||||||
else if((href_list["adj_threshold"]) && (!src.locked))
|
else if((href_list["adj_threshold"]) && (!src.locked || issilicon(usr)))
|
||||||
var/adjust_num = text2num(href_list["adj_threshold"])
|
var/adjust_num = text2num(href_list["adj_threshold"])
|
||||||
src.heal_threshold += adjust_num
|
src.heal_threshold += adjust_num
|
||||||
if(src.heal_threshold < 5)
|
if(src.heal_threshold < 5)
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
if(src.heal_threshold > 75)
|
if(src.heal_threshold > 75)
|
||||||
src.heal_threshold = 75
|
src.heal_threshold = 75
|
||||||
|
|
||||||
else if((href_list["adj_inject"]) && (!src.locked))
|
else if((href_list["adj_inject"]) && (!src.locked || issilicon(usr)))
|
||||||
var/adjust_num = text2num(href_list["adj_inject"])
|
var/adjust_num = text2num(href_list["adj_inject"])
|
||||||
src.injection_amount += adjust_num
|
src.injection_amount += adjust_num
|
||||||
if(src.injection_amount < 5)
|
if(src.injection_amount < 5)
|
||||||
@@ -159,7 +159,7 @@
|
|||||||
if(src.injection_amount > 15)
|
if(src.injection_amount > 15)
|
||||||
src.injection_amount = 15
|
src.injection_amount = 15
|
||||||
|
|
||||||
else if((href_list["use_beaker"]) && (!src.locked))
|
else if((href_list["use_beaker"]) && (!src.locked || issilicon(usr)))
|
||||||
src.use_beaker = !src.use_beaker
|
src.use_beaker = !src.use_beaker
|
||||||
|
|
||||||
else if (href_list["eject"] && (!isnull(src.reagent_glass)))
|
else if (href_list["eject"] && (!isnull(src.reagent_glass)))
|
||||||
@@ -169,7 +169,7 @@
|
|||||||
else
|
else
|
||||||
usr << "<span class='notice'>You cannot eject the beaker because the panel is locked.</span>"
|
usr << "<span class='notice'>You cannot eject the beaker because the panel is locked.</span>"
|
||||||
|
|
||||||
else if ((href_list["togglevoice"]) && (!src.locked))
|
else if ((href_list["togglevoice"]) && (!src.locked || issilicon(usr)))
|
||||||
src.shut_up = !src.shut_up
|
src.shut_up = !src.shut_up
|
||||||
|
|
||||||
src.updateUsrDialog()
|
src.updateUsrDialog()
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ Maintenance panel panel is [src.open ? "opened" : "closed"]"},
|
|||||||
|
|
||||||
"<A href='?src=\ref[src];power=1'>[src.on ? "On" : "Off"]</A>" )
|
"<A href='?src=\ref[src];power=1'>[src.on ? "On" : "Off"]</A>" )
|
||||||
|
|
||||||
if(!src.locked)
|
if(!src.locked || issilicon(user))
|
||||||
dat += text({"<BR>
|
dat += text({"<BR>
|
||||||
Check for Weapon Authorization: []<BR>
|
Check for Weapon Authorization: []<BR>
|
||||||
Check Security Records: []<BR>
|
Check Security Records: []<BR>
|
||||||
|
|||||||
Reference in New Issue
Block a user