mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user