Fixed a runtime error related to all items now being checked for var/protective_temperature and fixed another runtime error by doing something unholy.

This commit is contained in:
Albert Iordache
2011-12-22 00:12:29 +02:00
parent f653acde3c
commit 09d7739b08
5 changed files with 7 additions and 6 deletions

View File

@@ -253,7 +253,7 @@
/obj/item
name = "item"
icon = 'items.dmi'
var/icon_old = null//For when weapons get bloodied this saves their old icon.
var/icon_old = null // For when weapons get bloodied this saves their old icon.
var/abstract = 0
var/force = 0
var/item_state = null
@@ -265,9 +265,10 @@
var/hitsound = null
var/w_class = 3.0
var/wielded = 0
var/twohanded = 0 ///Two handed and wielded off by default, nyoro~n -Agouri
var/twohanded = 0 // Two handed and wielded off by default, nyoro~n -Agouri
var/force_unwielded = 0
var/force_wielded = 0
var/protective_temperature = 0 // Placing this here to avoid runtime errors, due to tiny items being allowed on ears and being queried for this variable
flags = FPRINT | TABLEPASS
pass_flags = PASSTABLE
pressure_resistance = 50

View File

@@ -9,7 +9,6 @@
var/body_parts_covered = 0 //see setup.dm for appropriate bit flags
var/protective_temperature = 0
var/heat_transfer_coefficient = 1 //0 prevents all transfers, 1 is invisible
var/gas_transfer_coefficient = 1 // for leaking gas from turf to mask and vice-versa (for masks right now, but at some point, i'd like to include space helmets)
var/permeability_coefficient = 1 // for chemicals/diseases

View File

@@ -832,7 +832,7 @@
var/list/stamped
var/see_face = 1
var/body_parts_covered = HEAD
var/protective_temperature = T0C + 10
protective_temperature = T0C + 10
var/heat_transfer_coefficient = 0.99
var/gas_transfer_coefficient = 1
var/permeability_coefficient = 0.99

View File

@@ -38,7 +38,9 @@
if (placeholder == null)
placeholder = 2
if (!( isnum(num) ))
CRASH("num2hex not given a numeric argument (user error)")
//CRASH("num2hex not given a numeric argument (user error)")
// Doing above the worst thing a programmer can do, remove a message raising an error in order to clear the error log.
// I shall perform harakiri if this leads to major problems in the future - Abi
return
if (!( num ))
return "0"

View File

@@ -6,7 +6,6 @@
g_amt = 0
m_amt = 75
var
protective_temperature = 0
translate_binary = 0
translate_hive = 0