-Fixed there being no return link when a "No SQL server" message appears on the Library Computer.

-Increased the amount of lights you get from adding glass to the Light Replacer.
-Emagging the light replacer is one way.
-You can add lights to the light replacer to add uses.
-You can unload the trash bag by clicking on it.
-Vodka now heals toxin damage.
-Made light tubes the same price as light bulbs.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4114 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2012-07-19 17:03:36 +00:00
parent 85d28606ef
commit d4c0a8130f
5 changed files with 33 additions and 15 deletions

View File

@@ -512,8 +512,8 @@ datum/borrowbook // Datum used to keep track of who has borrowed what when and f
var/title = query.item[3]
var/category = query.item[4]
dat += "<tr><td>[author]</td><td>[title]</td><td>[category]</td><td><A href='?src=\ref[src];targetid=[id]'>\[Order\]</A></td></tr>"
dat += "</table><BR>"
dat += "<A href='?src=\ref[src];switchscreen=0'>(Return to main menu)</A><BR>"
dat += "</table>"
dat += "<BR><A href='?src=\ref[src];switchscreen=0'>(Return to main menu)</A><BR>"
dbcon.Disconnect()
if(5)
dat += "<H3>Upload a New Title</H3>"

View File

@@ -15,7 +15,7 @@
//
// HOW TO REFILL THE DEVICE
//
// It will need to be manually refilled with glass.
// It will need to be manually refilled with lights.
// If it's part of a robot module, it will charge when the Robot is inside a Recharge Station.
//
// EMAGGED FEATURES
@@ -36,7 +36,7 @@
/obj/item/device/lightreplacer
name = "light replacer"
desc = "A device to automatically replace lights. Needs glass to operate."
desc = "A device to automatically replace lights. Refill with working lightbulbs."
icon = 'janitor.dmi'
icon_state = "lightreplacer0"
@@ -47,7 +47,7 @@
var/emagged = 0
var/failmsg = ""
// How much to increase per each glass?
var/increment = 2
var/increment = 5
// How much to take from the glass?
var/decrement = 1
var/charging = 0
@@ -63,7 +63,7 @@
usr << "It has [uses] lights remaining."
/obj/item/device/lightreplacer/attackby(obj/item/W, mob/user)
if(istype(W, /obj/item/weapon/card/emag))
if(istype(W, /obj/item/weapon/card/emag) && emagged == 0)
Emag()
return
@@ -75,6 +75,20 @@
user << "You insert a piece of glass into the [src.name]. You have [uses] lights remaining."
return
if(istype(W, /obj/item/weapon/light))
var/obj/item/weapon/light/L = W
if(L.status == 0) // LIGHT OKAY
if(uses <= max_uses)
ModifyUses(1)
user << "You insert the [L.name] into the [src.name]. You have [uses] lights remaining."
user.drop_item()
del(L)
return
else
user << "You need a working light."
return
/obj/item/device/lightreplacer/attack_self(mob/user)
/* // This would probably be a bit OP. If you want it though, uncomment the code.
if(isrobot(user))

View File

@@ -81,6 +81,14 @@
else
user << "\blue The bag is full!"
/obj/item/weapon/trashbag/attack_self(mob/living/user as mob)
if(contents.len > 0)
for(var/obj/item/I in src.contents)
I.loc = user.loc
update_icon()
user << "\blue You drop all the trash onto the floor."
/obj/item/weapon/trashbag/afterattack(atom/target as mob|obj|turf|area, mob/living/user as mob|obj, flag)
if(istype(target, /obj/item))
var/obj/item/W = target

View File

@@ -37,17 +37,11 @@ datum
if(istype(C, /obj/item/clothing/suit/bio_suit))
// bio suits are just about completely fool-proof - Doohl
// kind of a hacky way of making bio suits more resistant to chemicals but w/e
if(prob(50))
block = 1
else
if(prob(50))
if(prob(75))
block = 1
if(istype(C, /obj/item/clothing/head/bio_hood))
if(prob(50))
block = 1
else
if(prob(50))
if(prob(75))
block = 1
chance = chance * 100
@@ -2593,6 +2587,8 @@ datum
if(!data) data = 1
data++
M.dizziness +=3
if(holder.has_reagent("toxin"))
holder.remove_reagent("toxin", 2)
if(data >= 45 && data <125)
if (!M.stuttering) M.stuttering = 1
M.stuttering += 3

View File

@@ -674,7 +674,7 @@
icon_state = "ltube"
base_state = "ltube"
item_state = "c_tube"
g_amt = 200
g_amt = 100
brightness = 8
large