Fixes internal phoron buzz (#1908)

Due to bad code andn stuff, buzz happened every 3 secobds. no more.
This commit is contained in:
LordFowl
2017-03-12 11:50:18 +02:00
committed by skull132
parent 1426392904
commit 9856e18486
2 changed files with 37 additions and 1 deletions
+1 -1
View File
@@ -433,7 +433,7 @@ obj/item/organ/vaurca/neuralsocket/process()
return null
var/tank_pressure = air_contents.return_pressure()
if(tank_pressure < distribute_pressure)
if((tank_pressure < distribute_pressure) && prob(5))
owner << "<span class='warning'>There is a buzzing in your [parent_organ].</span>"
var/moles_needed = distribute_pressure*volume_to_return/(R_IDEAL_GAS_EQUATION*air_contents.temperature)