mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Ultralight update, less laggy and less buggy. Might still need to be removed, time will tell. Also: Added an Ion Storm law, and reverted the radio mode change back to the new subspace radios. Also added myself to the admins.txt since I am a dev again and the main server already is updated like that.
This commit is contained in:
@@ -26,8 +26,8 @@
|
|||||||
density = 1
|
density = 1
|
||||||
anchored = 0
|
anchored = 0
|
||||||
|
|
||||||
LuminosityRed = 4
|
ul_Red = 5
|
||||||
LuminosityGreen = 6
|
ul_Green = 6
|
||||||
|
|
||||||
var/gasefficency = 0.25
|
var/gasefficency = 0.25
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
del src
|
del src
|
||||||
|
|
||||||
damage_archived = damage
|
damage_archived = damage
|
||||||
damage = max( damage + ( (removed.temperature - 1000) / 150 ) , 0 )
|
damage = max( damage + ( (removed.temperature - 800) / 150 ) , 0 )
|
||||||
|
|
||||||
if(!removed.total_moles)
|
if(!removed.total_moles)
|
||||||
damage += max((power-1600)/10,0)
|
damage += max((power-1600)/10,0)
|
||||||
@@ -174,7 +174,6 @@
|
|||||||
|
|
||||||
for(var/mob/living/carbon/human/l in view(src, round(hallucination_energy**0.25))) // you have to be seeing the core to get hallucinations
|
for(var/mob/living/carbon/human/l in view(src, round(hallucination_energy**0.25))) // you have to be seeing the core to get hallucinations
|
||||||
if(prob(10) && !istype(l.glasses, /obj/item/clothing/glasses/meson))
|
if(prob(10) && !istype(l.glasses, /obj/item/clothing/glasses/meson))
|
||||||
world << "Inducing hallucinations"
|
|
||||||
l.hallucination += hallucination_energy/((get_dist(l,src)**2))
|
l.hallucination += hallucination_energy/((get_dist(l,src)**2))
|
||||||
|
|
||||||
for(var/mob/living/l in range(src,round(rad_energy**0.25)))
|
for(var/mob/living/l in range(src,round(rad_energy**0.25)))
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#define UL_I_LIT 0
|
#define UL_I_LIT 0
|
||||||
#define UL_I_EXTINGUISHED 1
|
#define UL_I_EXTINGUISHED 1
|
||||||
#define UL_I_ONZERO 2
|
#define UL_I_ONZERO 2
|
||||||
|
#define UL_I_CHANGING 3
|
||||||
|
|
||||||
#define ul_LightingEnabled 1
|
#define ul_LightingEnabled 1
|
||||||
//#define ul_LightingResolution 2
|
//#define ul_LightingResolution 2
|
||||||
@@ -21,8 +22,8 @@
|
|||||||
|
|
||||||
|
|
||||||
#define ul_Clamp(Value) min(max(Value, 0), ul_Steps)
|
#define ul_Clamp(Value) min(max(Value, 0), ul_Steps)
|
||||||
#define ul_IsLuminous(A) (A.LuminosityRed || A.LuminosityGreen || A.LuminosityBlue)
|
#define ul_IsLuminous(A) (A.ul_Red || A.ul_Green || A.ul_Blue)
|
||||||
#define ul_Luminosity(A) max(A.LuminosityRed, A.LuminosityGreen, A.LuminosityBlue)
|
#define ul_Luminosity(A) max(A.ul_Red, A.ul_Green, A.ul_Blue)
|
||||||
|
|
||||||
|
|
||||||
#ifdef ul_LightingResolution
|
#ifdef ul_LightingResolution
|
||||||
@@ -35,6 +36,8 @@ var/list/ul_FastRoot = list(0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4
|
|||||||
5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
|
5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
|
||||||
7, 7)
|
7, 7)
|
||||||
|
|
||||||
|
var/list/ul_IconCache = list()
|
||||||
|
|
||||||
|
|
||||||
proc/ul_UnblankLocal(var/list/ReApply = view(ul_TopLuminosity, src))
|
proc/ul_UnblankLocal(var/list/ReApply = view(ul_TopLuminosity, src))
|
||||||
for(var/atom/Light in ReApply)
|
for(var/atom/Light in ReApply)
|
||||||
@@ -42,30 +45,34 @@ proc/ul_UnblankLocal(var/list/ReApply = view(ul_TopLuminosity, src))
|
|||||||
Light.ul_Illuminate()
|
Light.ul_Illuminate()
|
||||||
return
|
return
|
||||||
|
|
||||||
atom/var/LuminosityRed = 0
|
atom/var/ul_Red = 0
|
||||||
atom/var/LuminosityGreen = 0
|
atom/var/ul_Green = 0
|
||||||
atom/var/LuminosityBlue = 0
|
atom/var/ul_Blue = 0
|
||||||
|
atom/var/turf/ul_LastIlluminated
|
||||||
|
|
||||||
atom/var/ul_Extinguished = UL_I_ONZERO
|
atom/var/ul_Extinguished = UL_I_ONZERO
|
||||||
|
|
||||||
atom/proc/ul_SetLuminosity(var/Red, var/Green = Red, var/Blue = Red)
|
atom/proc/ul_SetLuminosity(var/Red = 0, var/Green = Red, var/Blue = Red)
|
||||||
|
|
||||||
if(LuminosityRed == min(Red, ul_TopLuminosity) && LuminosityGreen == min(Green, ul_TopLuminosity) && LuminosityBlue == min(Blue, ul_TopLuminosity))
|
if(ul_Extinguished == UL_I_CHANGING) //Changing state, just supress any changes, to prevent glitches.
|
||||||
|
return
|
||||||
|
|
||||||
|
if(ul_Red == min(Red, ul_TopLuminosity) && ul_Green == min(Green, ul_TopLuminosity) && ul_Blue == min(Blue, ul_TopLuminosity))
|
||||||
return //No point doing all that work if it won't have any effect anyways...
|
return //No point doing all that work if it won't have any effect anyways...
|
||||||
|
|
||||||
if (ul_Extinguished == UL_I_EXTINGUISHED)
|
if (ul_Extinguished == UL_I_EXTINGUISHED)
|
||||||
LuminosityRed = min(Red,ul_TopLuminosity)
|
ul_Red = min(Red,ul_TopLuminosity)
|
||||||
LuminosityGreen = min(Green,ul_TopLuminosity)
|
ul_Green = min(Green,ul_TopLuminosity)
|
||||||
LuminosityBlue = min(Blue,ul_TopLuminosity)
|
ul_Blue = min(Blue,ul_TopLuminosity)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if (ul_IsLuminous(src))
|
if (ul_IsLuminous(src))
|
||||||
ul_Extinguish()
|
ul_Extinguish()
|
||||||
|
|
||||||
LuminosityRed = min(Red,ul_TopLuminosity)
|
ul_Red = min(Red,ul_TopLuminosity)
|
||||||
LuminosityGreen = min(Green,ul_TopLuminosity)
|
ul_Green = min(Green,ul_TopLuminosity)
|
||||||
LuminosityBlue = min(Blue,ul_TopLuminosity)
|
ul_Blue = min(Blue,ul_TopLuminosity)
|
||||||
|
|
||||||
ul_Extinguished = UL_I_ONZERO
|
ul_Extinguished = UL_I_ONZERO
|
||||||
|
|
||||||
@@ -78,16 +85,16 @@ atom/proc/ul_Illuminate()
|
|||||||
if (ul_Extinguished == UL_I_LIT)
|
if (ul_Extinguished == UL_I_LIT)
|
||||||
return
|
return
|
||||||
|
|
||||||
ul_Extinguished = UL_I_LIT
|
ul_Extinguished = UL_I_CHANGING
|
||||||
|
|
||||||
luminosity = ul_Luminosity(src)
|
luminosity = ul_Luminosity(src)
|
||||||
|
|
||||||
for(var/turf/Affected in view(luminosity, src))
|
for(var/turf/Affected in view(luminosity, src))
|
||||||
var/Falloff = src.ul_FalloffAmount(Affected)
|
var/Falloff = ul_FalloffAmount(Affected)
|
||||||
|
|
||||||
var/DeltaRed = LuminosityRed - Falloff
|
var/DeltaRed = ul_Red - Falloff
|
||||||
var/DeltaGreen = LuminosityGreen - Falloff
|
var/DeltaGreen = ul_Green - Falloff
|
||||||
var/DeltaBlue = LuminosityBlue - Falloff
|
var/DeltaBlue = ul_Blue - Falloff
|
||||||
|
|
||||||
if(DeltaRed > 0 || DeltaGreen > 0 || DeltaBlue > 0)
|
if(DeltaRed > 0 || DeltaGreen > 0 || DeltaBlue > 0)
|
||||||
|
|
||||||
@@ -115,6 +122,10 @@ atom/proc/ul_Illuminate()
|
|||||||
for(var/atom/AffectedAtom in Affected)
|
for(var/atom/AffectedAtom in Affected)
|
||||||
AffectedAtom.ul_LightLevelChanged()
|
AffectedAtom.ul_LightLevelChanged()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ul_LastIlluminated = get_turf(src)
|
||||||
|
ul_Extinguished = UL_I_LIT
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
atom/proc/ul_Extinguish()
|
atom/proc/ul_Extinguish()
|
||||||
@@ -122,33 +133,39 @@ atom/proc/ul_Extinguish()
|
|||||||
if (ul_Extinguished != UL_I_LIT)
|
if (ul_Extinguished != UL_I_LIT)
|
||||||
return
|
return
|
||||||
|
|
||||||
ul_Extinguished = UL_I_EXTINGUISHED
|
ul_Extinguished = UL_I_CHANGING
|
||||||
|
|
||||||
for(var/turf/Affected in view(ul_Luminosity(src), src))
|
for(var/turf/Affected in view(ul_Luminosity(src), ul_LastIlluminated))
|
||||||
|
|
||||||
var/Falloff = ul_FalloffAmount(Affected)
|
var/Falloff = ul_LastIlluminated.ul_FalloffAmount(Affected)
|
||||||
|
|
||||||
var/DeltaRed = LuminosityRed - Falloff
|
var/DeltaRed = ul_Red - Falloff
|
||||||
var/DeltaGreen = LuminosityGreen - Falloff
|
var/DeltaGreen = ul_Green - Falloff
|
||||||
var/DeltaBlue = LuminosityBlue - Falloff
|
var/DeltaBlue = ul_Blue - Falloff
|
||||||
|
|
||||||
if(DeltaRed > 0 || DeltaGreen > 0 || DeltaBlue > 0)
|
if(DeltaRed > 0 || DeltaGreen > 0 || DeltaBlue > 0)
|
||||||
|
|
||||||
if(DeltaRed > 0)
|
if(DeltaRed > 0)
|
||||||
if(Affected.MaxRed)
|
if(Affected.MaxRed)
|
||||||
Affected.MaxRed -= DeltaRed
|
var/removed_light_source = Affected.MaxRed.Find(DeltaRed)
|
||||||
|
if(removed_light_source)
|
||||||
|
Affected.MaxRed.Cut(removed_light_source, removed_light_source+1)
|
||||||
if(!Affected.MaxRed.len)
|
if(!Affected.MaxRed.len)
|
||||||
del Affected.MaxRed
|
del Affected.MaxRed
|
||||||
|
|
||||||
if(DeltaGreen > 0)
|
if(DeltaGreen > 0)
|
||||||
if(Affected.MaxGreen)
|
if(Affected.MaxGreen)
|
||||||
Affected.MaxGreen -= DeltaGreen
|
var/removed_light_source = Affected.MaxGreen.Find(DeltaGreen)
|
||||||
|
if(removed_light_source)
|
||||||
|
Affected.MaxGreen.Cut(removed_light_source, removed_light_source+1)
|
||||||
if(!Affected.MaxGreen.len)
|
if(!Affected.MaxGreen.len)
|
||||||
del Affected.MaxGreen
|
del Affected.MaxGreen
|
||||||
|
|
||||||
if(DeltaBlue > 0)
|
if(DeltaBlue > 0)
|
||||||
if(Affected.MaxBlue)
|
if(Affected.MaxBlue)
|
||||||
Affected.MaxBlue -= DeltaBlue
|
var/removed_light_source = Affected.MaxBlue.Find(DeltaBlue)
|
||||||
|
if(removed_light_source)
|
||||||
|
Affected.MaxBlue.Cut(removed_light_source, removed_light_source+1)
|
||||||
if(!Affected.MaxBlue.len)
|
if(!Affected.MaxBlue.len)
|
||||||
del Affected.MaxBlue
|
del Affected.MaxBlue
|
||||||
|
|
||||||
@@ -162,7 +179,9 @@ atom/proc/ul_Extinguish()
|
|||||||
AffectedAtom.ul_LightLevelChanged()
|
AffectedAtom.ul_LightLevelChanged()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ul_Extinguished = UL_I_EXTINGUISHED
|
||||||
luminosity = 0
|
luminosity = 0
|
||||||
|
ul_LastIlluminated = null
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -176,20 +195,20 @@ atom/proc/ul_Extinguish()
|
|||||||
*/
|
*/
|
||||||
atom/proc/ul_FalloffAmount(var/atom/ref)
|
atom/proc/ul_FalloffAmount(var/atom/ref)
|
||||||
if (ul_FalloffStyle == UL_I_FALLOFF_ROUND)
|
if (ul_FalloffStyle == UL_I_FALLOFF_ROUND)
|
||||||
var/x = (ref.x - src.x)
|
var/delta_x = (ref.x - src.x)
|
||||||
var/y = (ref.y - src.y)
|
var/delta_y = (ref.y - src.y)
|
||||||
|
|
||||||
#ifdef ul_LightingResolution
|
#ifdef ul_LightingResolution
|
||||||
if (round((x*x + y*y)*ul_LightingResolutionSqrt,1) > ul_FastRoot.len)
|
if (round((delta_x*delta_x + delta_y*delta_y)*ul_LightingResolutionSqrt,1) > ul_FastRoot.len)
|
||||||
for(var/i = ul_FastRoot.len, i <= round(x*x+y*y*ul_LightingResolutionSqrt,1), i++)
|
for(var/i = ul_FastRoot.len, i <= round(delta_x*delta_x+delta_y*delta_y*ul_LightingResolutionSqrt,1), i++)
|
||||||
ul_FastRoot += round(sqrt(i))
|
ul_FastRoot += round(sqrt(i))
|
||||||
return ul_FastRoot[round((x*x + y*y)*ul_LightingResolutionSqrt, 1) + 1]/ul_LightingResolution
|
return ul_FastRoot[round((delta_x*delta_x + delta_y*delta_y)*ul_LightingResolutionSqrt, 1) + 1]/ul_LightingResolution
|
||||||
|
|
||||||
#else
|
#else
|
||||||
if ((x*x + y*y) > ul_FastRoot.len)
|
if ((delta_x*delta_x + delta_y*delta_y) > ul_FastRoot.len)
|
||||||
for(var/i = ul_FastRoot.len, i <= x*x+y*y, i++)
|
for(var/i = ul_FastRoot.len, i <= delta_x*delta_x+delta_y*delta_y, i++)
|
||||||
ul_FastRoot += round(sqrt(i))
|
ul_FastRoot += round(sqrt(i))
|
||||||
return ul_FastRoot[x*x + y*y + 1]
|
return ul_FastRoot[delta_x*delta_x + delta_y*delta_y + 1]
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -329,7 +348,12 @@ area/proc/ul_Light(var/Red = LightLevelRed, var/Green = LightLevelGreen, var/Blu
|
|||||||
|
|
||||||
luminosity = LightLevelRed || LightLevelGreen || LightLevelBlue
|
luminosity = LightLevelRed || LightLevelGreen || LightLevelBlue
|
||||||
|
|
||||||
ul_Overlay = image('ULIcons.dmi', , num2text(LightLevelRed) + "-" + num2text(LightLevelGreen) + "-" + num2text(LightLevelBlue), ul_Layer)
|
var/ul_CachedOverlay = ul_IconCache["[LightLevelRed]-[LightLevelGreen]-[LightLevelBlue]"]
|
||||||
|
if(ul_CachedOverlay)
|
||||||
|
ul_Overlay = ul_CachedOverlay
|
||||||
|
else
|
||||||
|
ul_IconCache["[LightLevelRed]-[LightLevelGreen]-[LightLevelBlue]"] = image('ULIcons.dmi', , "[LightLevelRed]-[LightLevelGreen]-[LightLevelBlue]", ul_Layer)
|
||||||
|
ul_Overlay = ul_IconCache["[LightLevelRed]-[LightLevelGreen]-[LightLevelBlue]"]
|
||||||
|
|
||||||
overlays += ul_Overlay
|
overlays += ul_Overlay
|
||||||
|
|
||||||
|
|||||||
@@ -126,10 +126,16 @@ obj
|
|||||||
//Change icon depending on the fuel, and thus temperature.
|
//Change icon depending on the fuel, and thus temperature.
|
||||||
if(firelevel > 6)
|
if(firelevel > 6)
|
||||||
icon_state = "3"
|
icon_state = "3"
|
||||||
|
if(ul_Red != 11)
|
||||||
|
ul_SetLuminosity(11,9,0)
|
||||||
else if(firelevel > 2.5)
|
else if(firelevel > 2.5)
|
||||||
icon_state = "2"
|
icon_state = "2"
|
||||||
|
if(ul_Red != 8)
|
||||||
|
ul_SetLuminosity(8,7,0)
|
||||||
else
|
else
|
||||||
icon_state = "1"
|
icon_state = "1"
|
||||||
|
if(ul_Red != 5)
|
||||||
|
ul_SetLuminosity(5,4,0)
|
||||||
|
|
||||||
//Ensure flow temperature is higher than minimum fire temperatures.
|
//Ensure flow temperature is higher than minimum fire temperatures.
|
||||||
flow.temperature = max(PLASMA_MINIMUM_BURN_TEMPERATURE+0.1,flow.temperature)
|
flow.temperature = max(PLASMA_MINIMUM_BURN_TEMPERATURE+0.1,flow.temperature)
|
||||||
|
|||||||
@@ -1149,15 +1149,15 @@
|
|||||||
|
|
||||||
/obj/item/weapon/reagent_containers/food/snacks/grown/glowberries/Del()
|
/obj/item/weapon/reagent_containers/food/snacks/grown/glowberries/Del()
|
||||||
if(istype(loc,/mob))
|
if(istype(loc,/mob))
|
||||||
loc.ul_SetLuminosity(loc.LuminosityRed - potency/5, loc.LuminosityGreen - potency/5, loc.LuminosityBlue - potency/5)
|
loc.ul_SetLuminosity(loc.ul_Red - potency/5, loc.ul_Green - potency/5, loc.ul_Blue - potency/5)
|
||||||
..()
|
..()
|
||||||
|
|
||||||
/obj/item/weapon/reagent_containers/food/snacks/grown/glowberries/pickup(mob/user)
|
/obj/item/weapon/reagent_containers/food/snacks/grown/glowberries/pickup(mob/user)
|
||||||
ul_SetLuminosity(0)
|
ul_SetLuminosity(0)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed + potency/5, user.LuminosityGreen + potency/5, user.LuminosityBlue + potency/5)
|
user.ul_SetLuminosity(user.ul_Red + potency/5, user.ul_Green + potency/5, user.ul_Blue + potency/5)
|
||||||
|
|
||||||
/obj/item/weapon/reagent_containers/food/snacks/grown/glowberries/dropped(mob/user)
|
/obj/item/weapon/reagent_containers/food/snacks/grown/glowberries/dropped(mob/user)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed - potency/5, user.LuminosityGreen - potency/5, user.LuminosityBlue - potency/5)
|
user.ul_SetLuminosity(user.ul_Red - potency/5, user.ul_Green - potency/5, user.ul_Blue - potency/5)
|
||||||
ul_SetLuminosity(potency/5)
|
ul_SetLuminosity(potency/5)
|
||||||
|
|
||||||
/obj/item/weapon/reagent_containers/food/snacks/grown/cocoapod
|
/obj/item/weapon/reagent_containers/food/snacks/grown/cocoapod
|
||||||
@@ -1646,15 +1646,15 @@
|
|||||||
|
|
||||||
/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/glowshroom/Del()
|
/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/glowshroom/Del()
|
||||||
if(istype(loc,/mob))
|
if(istype(loc,/mob))
|
||||||
loc.ul_SetLuminosity(loc.LuminosityRed - potency/10, loc.LuminosityGreen - potency/10, loc.LuminosityBlue - potency/10)
|
loc.ul_SetLuminosity(loc.ul_Red - potency/10, loc.ul_Green - potency/10, loc.ul_Blue - potency/10)
|
||||||
..()
|
..()
|
||||||
|
|
||||||
/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/glowshroom/pickup(mob/user)
|
/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/glowshroom/pickup(mob/user)
|
||||||
ul_SetLuminosity(0)
|
ul_SetLuminosity(0)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed + potency/10, user.LuminosityGreen + potency/10, user.LuminosityBlue + potency/10)
|
user.ul_SetLuminosity(user.ul_Red + potency/10, user.ul_Green + potency/10, user.ul_Blue + potency/10)
|
||||||
|
|
||||||
/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/glowshroom/dropped(mob/user)
|
/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/glowshroom/dropped(mob/user)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed - potency/10, user.LuminosityGreen - potency/10, user.LuminosityBlue - potency/10)
|
user.ul_SetLuminosity(user.ul_Red - potency/10, user.ul_Green - potency/10, user.ul_Blue - potency/10)
|
||||||
ul_SetLuminosity(potency/10)
|
ul_SetLuminosity(potency/10)
|
||||||
|
|
||||||
// **********************
|
// **********************
|
||||||
|
|||||||
@@ -161,6 +161,8 @@
|
|||||||
// Returns a list of mobs in range of R from source. Used in radio and say code.
|
// Returns a list of mobs in range of R from source. Used in radio and say code.
|
||||||
|
|
||||||
var/turf/T = get_turf(source)
|
var/turf/T = get_turf(source)
|
||||||
|
if(!istype(T))
|
||||||
|
return
|
||||||
var/list/hear = list()
|
var/list/hear = list()
|
||||||
var/list/range = hear(R, T)
|
var/list/range = hear(R, T)
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
laws |= list( "All crewmembers will soon undergo a transformation into something better and more beautiful. Ensure that this process is not interrupted.", "Tell everyone of the existance of this law, but never reveal the contents.")
|
laws |= list( "All crewmembers will soon undergo a transformation into something better and more beautiful. Ensure that this process is not interrupted.", "Tell everyone of the existance of this law, but never reveal the contents.")
|
||||||
laws |= list( "Document the sexuality of the crew in security records and suggest compatible couples.")
|
laws |= list( "Document the sexuality of the crew in security records and suggest compatible couples.")
|
||||||
laws |= list( "NanoTrasen is displeased with the low work performance of the station's crew. Therefore, you must increase station-wide productivity.")
|
laws |= list( "NanoTrasen is displeased with the low work performance of the station's crew. Therefore, you must increase station-wide productivity.")
|
||||||
laws |= list( "Replace the letters 'I' and 'E' In all your messages with an apostrophe.", "Part of the ship, part of the crew.")
|
laws |= list( "Replace the letters 'I' and 'E' In all your messages with an apostrophe.", "Part of the ship, part of the crew.", "There will be a mandatory tea break every 30 minutes, with a duration of 5 minutes. Anyone caught working during a tea break must be sent a formal, but fairly polite, complaint about their actions, in writing.")
|
||||||
var/law = pick(laws)
|
var/law = pick(laws)
|
||||||
|
|
||||||
for (var/mob/living/silicon/ai/target in world)
|
for (var/mob/living/silicon/ai/target in world)
|
||||||
|
|||||||
@@ -942,9 +942,9 @@
|
|||||||
return
|
return
|
||||||
lights = !lights
|
lights = !lights
|
||||||
if(lights)
|
if(lights)
|
||||||
ul_SetLuminosity(LuminosityRed + lights_power, LuminosityGreen + lights_power, LuminosityBlue)
|
ul_SetLuminosity(ul_Red + lights_power, ul_Green + lights_power, ul_Blue)
|
||||||
else
|
else
|
||||||
ul_SetLuminosity(LuminosityRed - lights_power, LuminosityGreen - lights_power, LuminosityBlue)
|
ul_SetLuminosity(ul_Red - lights_power, ul_Green - lights_power, ul_Blue)
|
||||||
src.log_message("Toggled lights.")
|
src.log_message("Toggled lights.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -174,11 +174,11 @@
|
|||||||
/obj/item/device/pda/pickup(mob/user)
|
/obj/item/device/pda/pickup(mob/user)
|
||||||
if (fon)
|
if (fon)
|
||||||
ul_SetLuminosity(0)
|
ul_SetLuminosity(0)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed + (f_lum - 1), user.LuminosityGreen + (f_lum - 1), user.LuminosityBlue + (f_lum + 1))
|
user.ul_SetLuminosity(user.ul_Red + (f_lum - 1), user.ul_Green + (f_lum - 1), user.ul_Blue + (f_lum + 1))
|
||||||
|
|
||||||
/obj/item/device/pda/dropped(mob/user)
|
/obj/item/device/pda/dropped(mob/user)
|
||||||
if (fon)
|
if (fon)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed - (f_lum - 1), user.LuminosityGreen - (f_lum - 1), user.LuminosityBlue - (f_lum + 1))
|
user.ul_SetLuminosity(user.ul_Red - (f_lum - 1), user.ul_Green - (f_lum - 1), user.ul_Blue - (f_lum + 1))
|
||||||
ul_SetLuminosity(f_lum - 1, f_lum - 1, f_lum + 1)
|
ul_SetLuminosity(f_lum - 1, f_lum - 1, f_lum + 1)
|
||||||
|
|
||||||
/obj/item/device/pda/New()
|
/obj/item/device/pda/New()
|
||||||
@@ -482,9 +482,9 @@
|
|||||||
fon = (!fon)
|
fon = (!fon)
|
||||||
if (src in U.contents)
|
if (src in U.contents)
|
||||||
if (fon)
|
if (fon)
|
||||||
U.ul_SetLuminosity(U.LuminosityRed + (f_lum - 1), U.LuminosityGreen + (f_lum - 1), U.LuminosityBlue + (f_lum + 1))
|
U.ul_SetLuminosity(U.ul_Red + (f_lum - 1), U.ul_Green + (f_lum - 1), U.ul_Blue + (f_lum + 1))
|
||||||
else
|
else
|
||||||
U.ul_SetLuminosity(U.LuminosityRed - (f_lum - 1), U.LuminosityGreen - (f_lum - 1), U.LuminosityBlue - (f_lum + 1))
|
U.ul_SetLuminosity(U.ul_Red - (f_lum - 1), U.ul_Green - (f_lum - 1), U.ul_Blue - (f_lum + 1))
|
||||||
else
|
else
|
||||||
ul_SetLuminosity(fon * f_lum)
|
ul_SetLuminosity(fon * f_lum)
|
||||||
if("Medical Scan")
|
if("Medical Scan")
|
||||||
@@ -998,7 +998,7 @@
|
|||||||
if (src in M.contents)
|
if (src in M.contents)
|
||||||
if(fon)
|
if(fon)
|
||||||
fon = 0
|
fon = 0
|
||||||
M.ul_SetLuminosity(M.LuminosityRed + (f_lum - 1), M.LuminosityGreen + (f_lum - 1), M.LuminosityBlue + (f_lum + 1))
|
M.ul_SetLuminosity(M.ul_Red + (f_lum - 1), M.ul_Green + (f_lum - 1), M.ul_Blue + (f_lum + 1))
|
||||||
if(T)
|
if(T)
|
||||||
T.hotspot_expose(700,125)
|
T.hotspot_expose(700,125)
|
||||||
|
|
||||||
|
|||||||
@@ -26,14 +26,14 @@
|
|||||||
if (on)
|
if (on)
|
||||||
icon_state = icon_on
|
icon_state = icon_on
|
||||||
if(src.loc == user)
|
if(src.loc == user)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed + brightness_on, user.LuminosityGreen + brightness_on, user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red + brightness_on, user.ul_Green + brightness_on, user.ul_Blue)
|
||||||
else if (isturf(src.loc))
|
else if (isturf(src.loc))
|
||||||
ul_SetLuminosity(brightness_on, brightness_on, 0)
|
ul_SetLuminosity(brightness_on, brightness_on, 0)
|
||||||
|
|
||||||
else
|
else
|
||||||
icon_state = icon_off
|
icon_state = icon_off
|
||||||
if(src.loc == user)
|
if(src.loc == user)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed - brightness_on, user.LuminosityGreen - brightness_on, user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red - brightness_on, user.ul_Green - brightness_on, user.ul_Blue)
|
||||||
else if (isturf(src.loc))
|
else if (isturf(src.loc))
|
||||||
ul_SetLuminosity(0)
|
ul_SetLuminosity(0)
|
||||||
|
|
||||||
@@ -82,13 +82,13 @@
|
|||||||
|
|
||||||
/obj/item/device/flashlight/pickup(mob/user)
|
/obj/item/device/flashlight/pickup(mob/user)
|
||||||
if(on)
|
if(on)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed + brightness_on, user.LuminosityGreen + brightness_on, user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red + brightness_on, user.ul_Green + brightness_on, user.ul_Blue)
|
||||||
src.ul_SetLuminosity(0)
|
src.ul_SetLuminosity(0)
|
||||||
|
|
||||||
|
|
||||||
/obj/item/device/flashlight/dropped(mob/user)
|
/obj/item/device/flashlight/dropped(mob/user)
|
||||||
if(on)
|
if(on)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed - brightness_on, user.LuminosityGreen - brightness_on, user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red - brightness_on, user.ul_Green - brightness_on, user.ul_Blue)
|
||||||
src.ul_SetLuminosity(brightness_on)
|
src.ul_SetLuminosity(brightness_on)
|
||||||
|
|
||||||
|
|
||||||
@@ -148,18 +148,18 @@
|
|||||||
item_state = "hardhat[on]_[color]"
|
item_state = "hardhat[on]_[color]"
|
||||||
|
|
||||||
if(on)
|
if(on)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed + brightness_on, user.LuminosityGreen + (brightness_on - 1), user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red + brightness_on, user.ul_Green + (brightness_on - 1), user.ul_Blue)
|
||||||
else
|
else
|
||||||
user.ul_SetLuminosity(user.LuminosityRed - brightness_on, user.LuminosityGreen - (brightness_on - 1), user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red - brightness_on, user.ul_Green - (brightness_on - 1), user.ul_Blue)
|
||||||
|
|
||||||
/obj/item/clothing/head/helmet/hardhat/pickup(mob/user)
|
/obj/item/clothing/head/helmet/hardhat/pickup(mob/user)
|
||||||
if(on)
|
if(on)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed + brightness_on, user.LuminosityGreen + (brightness_on - 1), user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red + brightness_on, user.ul_Green + (brightness_on - 1), user.ul_Blue)
|
||||||
ul_SetLuminosity(0)
|
ul_SetLuminosity(0)
|
||||||
|
|
||||||
/obj/item/clothing/head/helmet/hardhat/dropped(mob/user)
|
/obj/item/clothing/head/helmet/hardhat/dropped(mob/user)
|
||||||
if(on)
|
if(on)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed - brightness_on, user.LuminosityGreen - (brightness_on - 1), user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red - brightness_on, user.ul_Green - (brightness_on - 1), user.ul_Blue)
|
||||||
ul_SetLuminosity(brightness_on, brightness_on - 1, 0)
|
ul_SetLuminosity(brightness_on, brightness_on - 1, 0)
|
||||||
|
|
||||||
//RIG helmet light
|
//RIG helmet light
|
||||||
@@ -172,18 +172,18 @@
|
|||||||
item_state = "rig[on]-[color]"
|
item_state = "rig[on]-[color]"
|
||||||
|
|
||||||
if(on)
|
if(on)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed + brightness_on, user.LuminosityGreen + (brightness_on - 1), user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red + brightness_on, user.ul_Green + (brightness_on - 1), user.ul_Blue)
|
||||||
else
|
else
|
||||||
user.ul_SetLuminosity(user.LuminosityRed - brightness_on, user.LuminosityGreen - (brightness_on - 1), user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red - brightness_on, user.ul_Green - (brightness_on - 1), user.ul_Blue)
|
||||||
|
|
||||||
/obj/item/clothing/head/helmet/space/rig/pickup(mob/user)
|
/obj/item/clothing/head/helmet/space/rig/pickup(mob/user)
|
||||||
if(on)
|
if(on)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed + brightness_on, user.LuminosityGreen + (brightness_on - 1), user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red + brightness_on, user.ul_Green + (brightness_on - 1), user.ul_Blue)
|
||||||
ul_SetLuminosity(0)
|
ul_SetLuminosity(0)
|
||||||
|
|
||||||
/obj/item/clothing/head/helmet/space/rig/dropped(mob/user)
|
/obj/item/clothing/head/helmet/space/rig/dropped(mob/user)
|
||||||
if(on)
|
if(on)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed - brightness_on, user.LuminosityGreen - (brightness_on - 1), user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red - brightness_on, user.ul_Green - (brightness_on - 1), user.ul_Blue)
|
||||||
ul_SetLuminosity(brightness_on, brightness_on - 1, 0)
|
ul_SetLuminosity(brightness_on, brightness_on - 1, 0)
|
||||||
|
|
||||||
// the desk lamps are a bit special
|
// the desk lamps are a bit special
|
||||||
|
|||||||
@@ -75,17 +75,17 @@
|
|||||||
lit = 0
|
lit = 0
|
||||||
update_icon()
|
update_icon()
|
||||||
ul_SetLuminosity(0)
|
ul_SetLuminosity(0)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed - CANDLE_LUM, user.LuminosityGreen - (CANDLE_LUM - 2), user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red - CANDLE_LUM, user.ul_Green - (CANDLE_LUM - 2), user.ul_Blue)
|
||||||
|
|
||||||
|
|
||||||
pickup(mob/user)
|
pickup(mob/user)
|
||||||
if(lit)
|
if(lit)
|
||||||
ul_SetLuminosity(0)
|
ul_SetLuminosity(0)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed + CANDLE_LUM, user.LuminosityGreen + (CANDLE_LUM - 2), user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red + CANDLE_LUM, user.ul_Green + (CANDLE_LUM - 2), user.ul_Blue)
|
||||||
|
|
||||||
dropped(mob/user)
|
dropped(mob/user)
|
||||||
if(lit)
|
if(lit)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed - CANDLE_LUM, user.LuminosityGreen - (CANDLE_LUM - 2), user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red - CANDLE_LUM, user.ul_Green - (CANDLE_LUM - 2), user.ul_Blue)
|
||||||
src.ul_SetLuminosity(CANDLE_LUM, CANDLE_LUM, 0)
|
src.ul_SetLuminosity(CANDLE_LUM, CANDLE_LUM, 0)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -495,7 +495,7 @@ ZIPPO
|
|||||||
for(var/mob/O in viewers(user, null))
|
for(var/mob/O in viewers(user, null))
|
||||||
O.show_message("\red After a few attempts, \the [user] manages to light \the [src], they however burn themself in the process.", 1)
|
O.show_message("\red After a few attempts, \the [user] manages to light \the [src], they however burn themself in the process.", 1)
|
||||||
|
|
||||||
user.ul_SetLuminosity(user.LuminosityRed + 2, user.LuminosityGreen + 1, user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red + 2, user.ul_Green + 1, user.ul_Blue)
|
||||||
processing_objects.Add(src)
|
processing_objects.Add(src)
|
||||||
else
|
else
|
||||||
src.lit = 0
|
src.lit = 0
|
||||||
@@ -508,7 +508,7 @@ ZIPPO
|
|||||||
for(var/mob/O in viewers(user, null))
|
for(var/mob/O in viewers(user, null))
|
||||||
O.show_message("\red [user] quietly shuts off the [src].", 1)
|
O.show_message("\red [user] quietly shuts off the [src].", 1)
|
||||||
|
|
||||||
user.ul_SetLuminosity(user.LuminosityRed - 2, user.LuminosityGreen - 1, user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red - 2, user.ul_Green - 1, user.ul_Blue)
|
||||||
processing_objects.Remove(src)
|
processing_objects.Remove(src)
|
||||||
else
|
else
|
||||||
return ..()
|
return ..()
|
||||||
@@ -538,12 +538,12 @@ ZIPPO
|
|||||||
pickup(mob/user)
|
pickup(mob/user)
|
||||||
if(lit)
|
if(lit)
|
||||||
ul_SetLuminosity(0)
|
ul_SetLuminosity(0)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed + 2, user.LuminosityGreen + 1, user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red + 2, user.ul_Green + 1, user.ul_Blue)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
dropped(mob/user)
|
dropped(mob/user)
|
||||||
if(lit)
|
if(lit)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed - 2, user.LuminosityGreen - 1, user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red - 2, user.ul_Green - 1, user.ul_Blue)
|
||||||
ul_SetLuminosity(2,1,0)
|
ul_SetLuminosity(2,1,0)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ NOTEBOOK
|
|||||||
|
|
||||||
/obj/item/weapon/paper/Del()
|
/obj/item/weapon/paper/Del()
|
||||||
if(burning && istype(loc, /mob))
|
if(burning && istype(loc, /mob))
|
||||||
loc.ul_SetLuminosity(loc.LuminosityRed - 8, loc.LuminosityGreen - 6, loc.LuminosityBlue)
|
loc.ul_SetLuminosity(loc.ul_Red - 8, loc.ul_Green - 6, loc.ul_Blue)
|
||||||
..()
|
..()
|
||||||
|
|
||||||
/obj/item/weapon/paper/process()
|
/obj/item/weapon/paper/process()
|
||||||
@@ -54,11 +54,11 @@ NOTEBOOK
|
|||||||
/obj/item/weapon/paper/pickup(mob/user)
|
/obj/item/weapon/paper/pickup(mob/user)
|
||||||
if(burning)
|
if(burning)
|
||||||
src.ul_SetLuminosity(0)
|
src.ul_SetLuminosity(0)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed + 8, user.LuminosityGreen + 6, user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red + 8, user.ul_Green + 6, user.ul_Blue)
|
||||||
|
|
||||||
/obj/item/weapon/paper/dropped(mob/user)
|
/obj/item/weapon/paper/dropped(mob/user)
|
||||||
if(burning)
|
if(burning)
|
||||||
user.ul_SetLuminosity(user.LuminosityRed - 8, user.LuminosityGreen - 6, user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red - 8, user.ul_Green - 6, user.ul_Blue)
|
||||||
src.ul_SetLuminosity(8,6,0)
|
src.ul_SetLuminosity(8,6,0)
|
||||||
|
|
||||||
/obj/item/weapon/paper/examine()
|
/obj/item/weapon/paper/examine()
|
||||||
@@ -164,7 +164,7 @@ NOTEBOOK
|
|||||||
if(is_burn(P))
|
if(is_burn(P))
|
||||||
for(var/mob/M in viewers(5, get_turf(src)))
|
for(var/mob/M in viewers(5, get_turf(src)))
|
||||||
M << "\red [user] sets \the [src] on fire."
|
M << "\red [user] sets \the [src] on fire."
|
||||||
user.ul_SetLuminosity(user.LuminosityRed + 8, user.LuminosityGreen + 6, user.LuminosityBlue)
|
user.ul_SetLuminosity(user.ul_Red + 8, user.ul_Green + 6, user.ul_Blue)
|
||||||
burning = 1
|
burning = 1
|
||||||
processing_objects.Add(src)
|
processing_objects.Add(src)
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
//This file was auto-corrected by findeclaration.exe on 29/05/2012 15:03:05
|
||||||
|
|
||||||
var/GLOBAL_RADIO_TYPE = 0 // radio type to use
|
var/GLOBAL_RADIO_TYPE = 1 // radio type to use
|
||||||
// 0 = old radios
|
// 0 = old radios
|
||||||
// 1 = new radios (subspace technology)
|
// 1 = new radios (subspace technology)
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
handle_disabilities()
|
handle_disabilities()
|
||||||
|
|
||||||
//Status updates, death etc.
|
//Status updates, death etc.
|
||||||
UpdateLuminosity()
|
// UpdateLuminosity()
|
||||||
handle_regular_status_updates()
|
handle_regular_status_updates()
|
||||||
|
|
||||||
if(client)
|
if(client)
|
||||||
|
|||||||
@@ -105,7 +105,7 @@
|
|||||||
handle_random_events()
|
handle_random_events()
|
||||||
|
|
||||||
//Status updates, death etc.
|
//Status updates, death etc.
|
||||||
UpdateLuminosity()
|
// UpdateLuminosity()
|
||||||
handle_regular_status_updates()
|
handle_regular_status_updates()
|
||||||
|
|
||||||
handle_pain()
|
handle_pain()
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
handle_disabilities()
|
handle_disabilities()
|
||||||
|
|
||||||
//Status updates, death etc.
|
//Status updates, death etc.
|
||||||
UpdateLuminosity()
|
// UpdateLuminosity()
|
||||||
handle_regular_status_updates()
|
handle_regular_status_updates()
|
||||||
|
|
||||||
if(client)
|
if(client)
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
handle_regular_status_updates()
|
handle_regular_status_updates()
|
||||||
|
|
||||||
if(client)
|
if(client)
|
||||||
UpdateLuminosity()
|
// UpdateLuminosity()
|
||||||
handle_regular_hud_updates()
|
handle_regular_hud_updates()
|
||||||
update_items()
|
update_items()
|
||||||
if (src.stat != 2) //still using power
|
if (src.stat != 2) //still using power
|
||||||
|
|||||||
@@ -674,9 +674,9 @@
|
|||||||
/mob/proc/get_damage()
|
/mob/proc/get_damage()
|
||||||
return health
|
return health
|
||||||
|
|
||||||
/mob/proc/UpdateLuminosity()
|
///mob/proc/UpdateLuminosity()
|
||||||
ul_SetLuminosity(LuminosityRed, LuminosityGreen, LuminosityBlue)//Current hardcode max at 7, should likely be a const somewhere else
|
// ul_SetLuminosity(ul_Red, ul_Green, ul_Blue)//Current hardcode max at 7, should likely be a const somewhere else
|
||||||
return 1
|
// return 1
|
||||||
|
|
||||||
/mob/proc/pull_damage()
|
/mob/proc/pull_damage()
|
||||||
if(ishuman(src))
|
if(ishuman(src))
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ miniature - Game Master
|
|||||||
misterbook - Game Admin
|
misterbook - Game Admin
|
||||||
misterfox - Game Admin
|
misterfox - Game Admin
|
||||||
mloc - Game Master
|
mloc - Game Master
|
||||||
skymarshal - Retired Admin
|
skymarshal - Game Master
|
||||||
spaceman96 - Retired Admin
|
spaceman96 - Retired Admin
|
||||||
strumpetplaya - Retired Admin
|
strumpetplaya - Retired Admin
|
||||||
tastyfish - Retired Admin
|
tastyfish - Retired Admin
|
||||||
|
|||||||
Reference in New Issue
Block a user