BS12 Hooks

This commit is contained in:
Mloc-Argent
2014-05-22 23:56:35 +02:00
committed by alex-gh
parent a2a50586b0
commit 1b2f83dee4
18 changed files with 96 additions and 122 deletions
+4
View File
@@ -17,6 +17,10 @@
solar_next_update = world.time // init the timer
angle = rand (0,360) // the station position to the sun is randomised at round start
/hook/startup/proc/createSun()
sun = new /datum/sun()
return 1
// calculate the sun's position given the time of day
// at the standard rate (100%) the angle is increase/decreased by 6 degrees every minute.
// a full rotation thus take a game hour in that case