* Weather

* gottem

* cleanup

* comments
This commit is contained in:
Kurfursten
2019-12-19 06:40:03 -06:00
committed by jknpj
parent 57cbdd5e6b
commit e23cc9f0ab
16 changed files with 515 additions and 290 deletions

View File

@@ -609,6 +609,37 @@
O.manual_stop_follow(O.locked_to)
O.forceMove(get_turf(dish))
else if(href_list["climate_timeleft"])
if(!check_rights(R_ADMIN))
return
if(!map.climate)
return
var/datum/weather/W = map.climate.current_weather
var/nu = input(usr, "Enter remaining time (deciseconds)", "Adjust Timeleft", W.timeleft) as null|num
if(!nu)
return
W.timeleft = round(nu)
log_admin("[key_name(usr)] adjusted weather time.")
message_admins("<span class='notice'>[key_name(usr)] adjusted weather time.</span>", 1)
climate_panel()
else if(href_list["climate_weather"])
if(!check_rights(R_ADMIN))
return
if(!map.climate)
return
var/datum/climate/C = map.climate
var/nu = input(usr, "Select New Weather", "Adjust Weather", C.current_weather.type) as null|anything in typesof(/datum/weather)
if(!nu || nu == C.current_weather.type)
return
if(!ispath(nu))
return
C.change_weather(nu)
C.forecast()
log_admin("[key_name(usr)] adjusted weather type.")
message_admins("<span class='notice'>[key_name(usr)] adjusted weather type.</span>", 1)
climate_panel()
else if(href_list["delay_round_end"])
if(!check_rights(R_SERVER))
return