mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
#undef is now required for all file defines (#24091)
* CI * undef * hooooly crap * yeah * false by default * fixes * alright, there we go * oops lmao * lol, lmao even * proper programming * fix * losin my mind * oops * yeah coloring * WE LOVE MULTIPLE DEFINES (ive lost my sanity)
This commit is contained in:
@@ -369,3 +369,7 @@
|
||||
//no special effects, but the explosion is pretty big (same as a supermatter shard).
|
||||
explosion(loc, 3, 6, 12, 16, 1)
|
||||
qdel(src)
|
||||
|
||||
#undef SHEET_VOLUME
|
||||
#undef TEMPERATURE_DIVISOR
|
||||
#undef TEMPERATURE_CHANGE_MAX
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#define SOLAR_MAX_DIST 40
|
||||
|
||||
|
||||
/obj/machinery/power/solar
|
||||
name = "solar panel"
|
||||
@@ -25,9 +25,9 @@
|
||||
unset_control() //remove from control computer
|
||||
return ..()
|
||||
|
||||
//set the control of the panel to a given computer if closer than SOLAR_MAX_DIST
|
||||
//set the control of the panel to a given computer if closer than SOLAR_MACHINERY_MAX_DIST
|
||||
/obj/machinery/power/solar/proc/set_control(obj/machinery/power/solar_control/SC)
|
||||
if(!SC || (get_dist(src, SC) > SOLAR_MAX_DIST))
|
||||
if(!SC || (get_dist(src, SC) > SOLAR_MACHINERY_MAX_DIST))
|
||||
return FALSE
|
||||
control = SC
|
||||
SC.connected_panels |= src
|
||||
@@ -514,3 +514,7 @@
|
||||
/obj/item/paper/solar
|
||||
name = "paper- 'Going green! Setup your own solar array instructions.'"
|
||||
info = "<h1>Welcome</h1><p>At greencorps we love the environment, and space. With this package you are able to help mother nature and produce energy without any usage of fossil fuel or plasma! Singularity energy is dangerous while solar energy is safe, which is why it's better. Now here is how you setup your own solar array.</p><p>You can make a solar panel by wrenching the solar assembly onto a cable node. Adding a glass panel, reinforced or regular glass will do, will finish the construction of your solar panel. It is that easy!</p><p>Now after setting up 19 more of these solar panels you will want to create a solar tracker to keep track of our mother nature's gift, the sun. These are the same steps as before except you insert the tracker equipment circuit into the assembly before performing the final step of adding the glass. You now have a tracker! Now the last step is to add a computer to calculate the sun's movements and to send commands to the solar panels to change direction with the sun. Setting up the solar computer is the same as setting up any computer, so you should have no trouble in doing that. You do need to put a wire node under the computer, and the wire needs to be connected to the tracker.</p><p>Congratulations, you should have a working solar array. If you are having trouble, here are some tips. Make sure all solar equipment are on a cable node, even the computer. You can always deconstruct your creations if you make a mistake.</p><p>That's all to it, be safe, be green!</p>"
|
||||
|
||||
#undef TRACKER_OFF
|
||||
#undef TRACKER_TIMED
|
||||
#undef TRACKER_AUTO
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
unset_control() //remove from control computer
|
||||
return ..()
|
||||
|
||||
//set the control of the tracker to a given computer if closer than SOLAR_MAX_DIST
|
||||
//set the control of the tracker to a given computer if closer than SOLAR_MACHINERY_MAX_DIST
|
||||
/obj/machinery/power/tracker/proc/set_control(obj/machinery/power/solar_control/SC)
|
||||
if(SC && (get_dist(src, SC) > SOLAR_MAX_DIST))
|
||||
if(SC && (get_dist(src, SC) > SOLAR_MACHINERY_MAX_DIST))
|
||||
return FALSE
|
||||
control = SC
|
||||
SC.connected_tracker = src
|
||||
|
||||
@@ -478,3 +478,12 @@
|
||||
#undef VERY_FAST
|
||||
#undef FAST
|
||||
#undef SLOW
|
||||
|
||||
#undef OVERHEAT_TIME
|
||||
#undef OVERHEAT_THRESHOLD
|
||||
#undef OVERHEAT_MESSAGE
|
||||
#undef COMPFRICTION
|
||||
#undef COMPSTARTERLOAD
|
||||
#undef TURBPOWER
|
||||
#undef TURBCURVESHAPE
|
||||
#undef POWER_CURVE_MOD
|
||||
|
||||
Reference in New Issue
Block a user