Minor Update:

- Thermite'd walls and mined minerals no longer fuck over the lighting code.
- Power cells now have a different examine-text entry when they fail due to low reliability.
- Some R&D console tweaks.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1100 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
morikou@gmail.com
2011-02-23 20:32:42 +00:00
parent f29a14e2c9
commit aeecba8089
4 changed files with 6 additions and 1 deletions

View File

@@ -1416,6 +1416,7 @@ proc/move_mining_shuttle()
*/
W.opacity = 1
W.sd_SetOpacity(0)
W.sd_LumReset()
W.levelupdate()
return W

View File

@@ -247,7 +247,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
var/list/temp_tech = linked_destroy.ConvertReqString2List(linked_destroy.loaded_item.origin_tech)
for(var/T in temp_tech)
files.UpdateTech(T, temp_tech[T])
if(linked_destroy.loaded_item.reliability < 100)
if(linked_destroy.loaded_item.reliability < 100 && linked_destroy.loaded_item.crit_fail)
files.UpdateDesign(linked_destroy.loaded_item.type)
if(linked_lathe) //Also sends salvaged materials to a linked autolathe, if any.
linked_lathe.m_amount = min((linked_lathe.max_material_storage - linked_lathe.TotalMaterials()), (linked_destroy.loaded_item.m_amt*linked_destroy.decon_mod))

View File

@@ -343,6 +343,7 @@
F.burn_tile()
user << "\red The thermite melts the wall."
spawn(100) del(O)
F.sd_LumReset()
return
if (W:remove_fuel(5,user))
@@ -391,6 +392,7 @@
F.burn_tile()
user << "\red The thermite melts the wall."
spawn(100) del(O)
F.sd_LumReset()
return
if (src.d_state == 2)

View File

@@ -59,6 +59,8 @@
usr << "[desc]\nThe manufacturer's label states this cell has a power rating of [maxcharge], and that you should not swallow it.\nThe charge meter reads [round(src.percent() )]%."
else
usr << "This power cell has an exciting chrome finish, as it is an uber-capacity cell type! It has a power rating of [maxcharge]!!!\nThe charge meter reads [round(src.percent() )]%."
if(crit_fail)
usr << "\red This power cell seems to be faulty"
//Just because someone gets you occasionally with stun gloves doesn't mean you can put in code to kill everyone who tries to make some.
/obj/item/weapon/cell/attackby(obj/item/W, mob/user)