Remove NIF savetofile

Long shot, but in hopes of fixing a crashing bug involving NIF info saving to character file
This commit is contained in:
Razgriz
2020-07-15 19:46:01 -07:00
committed by GitHub
parent 659217c565
commit d500aa1c66

View File

@@ -26,8 +26,6 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable
var/durability = 100 // Durability remaining
var/bioadap = FALSE // If it'll work in fancy species
var/savetofile = TRUE /*Start True so that Transcore saves any NIF that's newly installed with the correct scans or implant.
DO NOT CHANGE durability WITHOUT SETTING THIS TO TRUE. */
var/tmp/power_usage = 0 // Nifsoft adds to this
var/tmp/mob/living/carbon/human/human // Our owner!
@@ -98,7 +96,6 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable
//If given wear (like when spawned) then done
if(wear)
durability = wear
savetofile = TRUE
wear(0) //Just make it update.
//Draw me yo.
@@ -191,7 +188,6 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable
/obj/item/device/nif/proc/wear(var/wear = 0)
wear *= (rand(85,115) / 100) //Apparently rand() only takes integers.
durability -= wear
savetofile = TRUE
if(durability <= 0)
stat = NIF_TEMPFAIL
@@ -230,7 +226,6 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable
playsound(src, 'sound/items/Screwdriver.ogg', 50, 1)
open = FALSE
durability = initial(durability)
savetofile = TRUE
stat = NIF_PREINSTALL
update_icon()