Skip to content

Commit

Permalink
weather updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sayterdarkwynd committed Mar 25, 2017
1 parent ce14a1a commit dfc1637
Show file tree
Hide file tree
Showing 17 changed files with 120 additions and 17 deletions.
23 changes: 11 additions & 12 deletions interface/cockpit/cockpit.config.patch
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@
"path" : "/threatLevelToColor",
"value" : {
"default" : [
[ 0, 170, 233], //TL 1
[ 16, 233, 0], //TL 2
[ 194, 233, 0 ], //TL 3
[ 235, 171, 0 ], //TL 4
[ 235, 100, 0], //TL 5
[ 235, 49, 0], //TL 6
[ 192, 32, 0], //TL 7
[ 255, 32, 50], //TL 8
[ 255, 0, 0], //TL 9
[ 255, 0, 0] //TL 10
[ 0, 170, 233],
[ 16, 233, 0],
[ 194, 233, 0 ],
[ 235, 171, 0 ],
[ 235, 100, 0],
[ 235, 49, 0],
[ 192, 32, 0],
[ 255, 32, 50],
[ 255, 0, 72],
[ 255, 0, 0]
],
"moon" : [
[160, 160, 160]
Expand Down Expand Up @@ -115,7 +115,7 @@

{"op":"replace","path":"/planetTypeToDescription/scorchedcity",
"value":[
"The landing location is a ^#b24301;scorched^white; wasteland. The atmospheric ^red;temperature is dangerously high^white; and also contains ^green;poisonous gases^reset;. It is impressively brave of you to consider this destination."
"The landing location is a ^#b24301;scorched^white; wasteland. The atmospheric ^red;temperature is dangerously high^white; and also contains ^green;poisonous gases^reset;. It is impressively brave of you to consider this destination.",
"The beam site is ^#b24301;scorched^white; and desolate. Little is capable of surviving here as the ^red;temperature is fatally high^white; and loaded with ^reset;poisonous gas^reset;. People live in the area, but I cannot fathom why.",
"The landing site is ^#b24301;scorched^white; by the ^red;intense heat of the planet's surface^white; and its ^green;nasty poison gases^reset;. Only a few hardy individuals remain, possibly out of pure habit."
]},
Expand Down Expand Up @@ -344,7 +344,6 @@
"This unusually ^#914560;super-dense^reset; planet has gravity ^orange;far above normal^reset;. Be very careful. ^red;Falling means certain death^reset;.",
"A ^#914560;Super-dense^reset; world with a much higher gravitational force than other planets of the same size. ^red;Very dangerous. Tread carefully."]},

//------------
{"op":"add","path":"/planetTypeToDescription/arcticdark",
"value":["^red;Temperatures at the landing site are dangerously low.^white; You will be beaming onto a small island surrounded by ^#00ffe4;frigid ocean^white;. I strongly advise you to wear a scarf.",
"The beam site is ^red;intensely cold^white;: a tiny island in a ^#00ffe4;frigid ocean^white;. There is a 0.025% chance you will mis-beam into the water, quickly succumbing to the awful chill.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"7.png",
"8.png",
"9.png",
"10.png",
"11.png",
"12.png",
"13.png",
Expand Down
10 changes: 10 additions & 0 deletions stats/effects/fu_weathereffects/new/aether/aetherweathernew.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ if (status.stat("cosmicResistance",0) >= 1.0) or status.statPositive("aetherImm
effect.expire()
end

-- checks strength of effect vs resistance
if (config.getParameter("biomeTemp",0) == 2) and (status.stat("cosmicResistance",0) >= 0.45) then
effect.expire()
elseif (config.getParameter("biomeTemp",0) == 3) and (status.stat("cosmicResistance",0) >= 0.70) then
effect.expire()
elseif (config.getParameter("biomeTemp",0) == 4) and (status.stat("cosmicResistance",0) >= 1.0) then
effect.expire()
end


self.timerRadioMessage = 0 -- initial delay for secondary radiomessages

-- Environment Configuration --
Expand Down
10 changes: 10 additions & 0 deletions stats/effects/fu_weathereffects/new/cold/coldweathernew.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ if (status.stat("iceResistance",0) >= 1.0) or status.statPositive("biomecoldImm
effect.expire()
end

if (config.getParameter("baseRate",0) == 10) and (status.stat("iceResistance",0) >= 0.2) then
effect.expire()
elseif (config.getParameter("baseRate",0) == 4) and (status.stat("iceResistance",0) >= 0.35) then
effect.expire()
elseif (config.getParameter("baseRate",0) == 3) and (status.stat("iceResistance",0) >= 0.65) then
effect.expire()
elseif (config.getParameter("baseRate",0) == 2) and (status.stat("iceResistance",0) >= 1.0 ) then
effect.expire()
end

self.timerRadioMessage = 0 -- initial delay for secondary radiomessages

-- Environment Configuration --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ function init()
if (status.stat("electricResistance",0) >= 1.0) or status.statPositive("biomeelectricImmunity") or world.type()=="unknown" then
effect.expire()
end

-- checks strength of effect vs resistance
if (config.getParameter("baseDmgPerTick",0) >= 4) and (status.stat("electricResistance",0) >= 0.3) then
effect.expire()
elseif (config.getParameter("baseDmgPerTick",0) >= 5) and (status.stat("electricResistance",0) >= 0.6) then
effect.expire()
elseif (config.getParameter("baseDmgPerTick",0) >= 6) and (status.stat("electricResistance",0) >= 1.0) then
effect.expire()
end

self.timerRadioMessage = 0 -- initial delay for secondary radiomessages

-- Environment Configuration --
Expand Down
9 changes: 9 additions & 0 deletions stats/effects/fu_weathereffects/new/heat/heatweathernew.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ if (status.stat("fireResistance",0) >= 1.0) or status.statPositive("biomeheatIm
effect.expire()
end

-- checks strength of effect vs resistance
if (config.getParameter("baseDmgPerTick",0) >= 5) and (status.stat("fireResistance",0) >= 0.3) then
effect.expire()
elseif (config.getParameter("baseDmgPerTick",0) >= 6) and (status.stat("fireResistance",0) >= 0.6) then
effect.expire()
elseif (config.getParameter("baseDmgPerTick",0) >= 7) and (status.stat("fireResistance",0) >= 1.0) then
effect.expire()
end

self.timerRadioMessage = 0 -- initial delay for secondary radiomessages

-- Environment Configuration --
Expand Down
7 changes: 7 additions & 0 deletions stats/effects/fu_weathereffects/new/insanity/insanitynew.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ function init()
if (status.stat("cosmicResistance",0) >= 1.0) or status.statPositive("insanityImmunity") or world.type()=="unknown" then
effect.expire()
end

if (config.getParameter("baseDmgPerTick",0) >= 2) and (status.stat("cosmicResistance",0) >= 0.6) then
effect.expire()
elseif (config.getParameter("baseDmgPerTick",0) >= 4) and (status.stat("cosmicResistance",0) >= 0.9) then
effect.expire()
end

-- Environment Configuration --
--base values
self.baseRate = config.getParameter("baseRate",0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"biomeThreshold" : 1,
"baseRate" : 8,
"baseDebuffPerTick" : 2,
"baseDmgPerTick" : 2,
"baseDmgPerTick" : 4,
"situationPenalty" : 1,
"liquidPenalty" : 1,
"biomeNight" : 1,
Expand Down
11 changes: 11 additions & 0 deletions stats/effects/fu_weathereffects/new/poison/poisonweathernew.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ if (status.stat("poisonResistance",0) >= 1.0) or status.statPositive("poisonSta
effect.expire()
end

-- checks strength of effect vs resistance
if (config.getParameter("baseDmgPerTick",0) >= 1) and (status.stat("poisonResistance",0) >= 0.3) then
effect.expire()
elseif (config.getParameter("baseDmgPerTick",0) >= 2) and (status.stat("poisonResistance",0) >= 0.6) then
effect.expire()
elseif (config.getParameter("baseDmgPerTick",0) >= 3) and (status.stat("poisonResistance",0) >= 1.0) then
effect.expire()
elseif (config.getParameter("biomeThreshold",0) == 1.2) and (status.stat("poisonResistance",0) >= 0.5) then
effect.expire()
end

self.timerRadioMessage = 0 -- initial delay for secondary radiomessages

-- Environment Configuration --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ if (status.stat("poisonResistance",0) >= 1.0) or status.statPositive("poisonSta
effect.expire()
end

-- checks strength of effect vs resistance
if (config.getParameter("baseDmgPerTick",0) >= 1) and (status.stat("poisonResistance",0) >= 0.3) then
effect.expire()
elseif (config.getParameter("baseDmgPerTick",0) >= 2) and (status.stat("poisonResistance",0) >= 0.6) then
effect.expire()
elseif (config.getParameter("baseDmgPerTick",0) >= 3) and (status.stat("poisonResistance",0) >= 1.0) then
effect.expire()
elseif (config.getParameter("biomeThreshold",0) == 1.2) and (status.stat("poisonResistance",0) >= 0.5) then
effect.expire()
end

self.timerRadioMessage = 0 -- initial delay for secondary radiomessages

-- Environment Configuration --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ if (status.stat("poisonResistance",0) >= 1.0) or status.statPositive("protoImmu
effect.expire()
end

-- checks strength of effect vs resistance
if (config.getParameter("biomeTemp",0) == 1.15) and (status.stat("poisonResistance",0) >= 0.45) then
effect.expire()
elseif (config.getParameter("biomeTemp",0) == 1.0) and (status.stat("poisonResistance",0) >= 0.70) then
effect.expire()
end


self.timerRadioMessage = 0 -- initial delay for secondary radiomessages

-- Environment Configuration --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ if (status.stat("radioactiveResistance",0) >= 1.0) or status.statPositive("biom
effect.expire()
end

-- checks strength of effect vs resistance
if (config.getParameter("baseRate",0) == 5) and (status.stat("radioactiveResistance",0) >= 0.3) then
effect.expire()
elseif (config.getParameter("baseRate",0) == 4) and (status.stat("radioactiveResistance",0) >= 0.6) then
effect.expire()
elseif (config.getParameter("baseRate",0) == 3) and (status.stat("radioactiveResistance",0) >= 1.0) then
effect.expire()
end

self.timerRadioMessage = 0 -- initial delay for secondary radiomessages

-- Environment Configuration --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"biomeThreshold" : 1.5,
"baseRate" : 4,
"baseDebuffPerTick" : 5,
"baseDmgPerTick" : 2,
"baseDmgPerTick" : 4,
"situationPenalty" : 1.2,
"liquidPenalty" : 0.7,
"biomeNight" : 1.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"biomeThreshold" : 1,
"baseRate" : 3,
"baseDebuffPerTick" : 7,
"baseDmgPerTick" : 4,
"baseDmgPerTick" : 5,
"situationPenalty" : 1.2,
"liquidPenalty" : 0.7,
"biomeNight" : 1.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ if (status.stat("physicalResistance",0) >= 1.0) or status.statPositive("sulphur
effect.expire()
end

-- checks strength of effect vs resistance
if (config.getParameter("baseDebuffPerTick",0) == 3) and (status.stat("physicalResistance",0) >= 0.25) then
effect.expire()
elseif (config.getParameter("baseDebuffPerTick",0) == 5) and (status.stat("physicalResistance",0) >= 0.50) then
effect.expire()
elseif (config.getParameter("baseDebuffPerTick",0) == 7) and (status.stat("physicalResistance",0) >= 0.75) then
effect.expire()
elseif (config.getParameter("baseDebuffPerTick",0) == 9) and (status.stat("physicalResistance",0) >= 1.0) then
effect.expire()
end

self.timerRadioMessage = 0 -- initial delay for secondary radiomessages

-- Environment Configuration --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ if (status.stat("physicalResistance",0) >= 1.0) or status.statPositive("sulphur
effect.expire()
end

-- checks strength of effect vs resistance
if (config.getParameter("biomeTemp",0) == 1.05) and (status.stat("physicalResistance",0) >= 0.55) then
effect.expire()
elseif (config.getParameter("biomeTemp",0) == 1.08) and (status.stat("physicalResistance",0) >= 0.70) then
effect.expire()
elseif (config.getParameter("biomeTemp",0) == 1.3) and (status.stat("physicalResistance",0) >= 1.0) then
effect.expire()
end

self.timerRadioMessage = 0 -- initial delay for secondary radiomessages

-- Environment Configuration --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"blockingStat" : "sulphuricImmunity",

"effectConfig" : {
"biomeTemp" : 1.1,
"biomeTemp" : 1.3,
"biomeThreshold" : 0.7,
"baseRate" : 4,
"baseDebuffPerTick" : 2,
Expand Down

0 comments on commit dfc1637

Please sign in to comment.