mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 19:47:47 +01:00
use gauss elimination for color matrix (#19190)
* use gauss elimination for color matrix * . * Update functions.ts * Update functions.ts * some more improvements * . * . * . * ugh --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
3303d1617b
commit
6c5f04de76
@@ -626,19 +626,19 @@ ADMIN_VERB(cmd_admin_add_freeform_ai_law, R_FUN, "Add Custom AI law", "Adds a cu
|
||||
command_announcement.Announce("Ion storm detected near the [station_name()]. Please check all AI-controlled equipment for errors.", "Anomaly Alert", new_sound = 'sound/AI/ionstorm.ogg')
|
||||
feedback_add_details("admin_verb","IONC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
ADMIN_VERB_AND_CONTEXT_MENU(cmd_admin_rejuvenate, R_ADMIN|R_FUN|R_MOD, "Rejuvenate", "Fully restores the target mob.", ADMIN_CATEGORY_GAME, mob/living/traget_mob as mob in GLOB.mob_list)
|
||||
if(!traget_mob)
|
||||
ADMIN_VERB_AND_CONTEXT_MENU(cmd_admin_rejuvenate, R_ADMIN|R_FUN|R_MOD, "Rejuvenate", "Fully restores the target mob.", ADMIN_CATEGORY_GAME, mob/living/target_mob as mob in GLOB.mob_list)
|
||||
if(!target_mob)
|
||||
return
|
||||
if(!istype(traget_mob))
|
||||
if(!istype(target_mob))
|
||||
tgui_alert_async(user, "Cannot revive a ghost")
|
||||
return
|
||||
if(CONFIG_GET(flag/allow_admin_rev))
|
||||
traget_mob.revive()
|
||||
target_mob.revive()
|
||||
|
||||
log_admin("[key_name(user)] healed / revived [key_name(traget_mob)]")
|
||||
var/msg = span_danger("Admin [key_name_admin(user)] healed / revived [ADMIN_LOOKUPFLW(traget_mob)]!")
|
||||
log_admin("[key_name(user)] healed / revived [key_name(target_mob)]")
|
||||
var/msg = span_danger("Admin [key_name_admin(user)] healed / revived [ADMIN_LOOKUPFLW(target_mob)]!")
|
||||
message_admins(msg)
|
||||
admin_ticket_log(traget_mob, msg)
|
||||
admin_ticket_log(target_mob, msg)
|
||||
else
|
||||
tgui_alert_async(user, "Admin revive disabled")
|
||||
feedback_add_details("admin_verb","REJU") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
@@ -111,6 +111,8 @@
|
||||
sleep(rand(3,5))
|
||||
if(!length(neighbors))
|
||||
break
|
||||
if(QDELETED(src)) // we sleep, might get deleted!
|
||||
return
|
||||
spread_to(pick(neighbors))
|
||||
|
||||
// We shouldn't have spawned if the controller doesn't exist.
|
||||
|
||||
@@ -36,7 +36,7 @@ Controlled by the player_tips subsystem under code/controllers/subsystems/player
|
||||
if(!(target_mob.client?.prefs?.read_preference(/datum/preference/toggle/player_tips)))
|
||||
return
|
||||
if(target_mob.key && !(target_mob.key in HasReceived))
|
||||
to_chat(target_mob, span_warning("You have periodic player tips enabled. You may turn them off at any time with the Toggle Receiving Player Tips verb in Preferences, or in character set up under the OOC tab!\n Player tips appear every 45-75 minutes."))
|
||||
to_chat(target_mob, span_warning("You have periodic player tips enabled. You may turn them off at any time with the Toggle Receiving Player Tips verb in Preferences, or in character set up under the OOC tab!\nPlayer tips appear every 45-75 minutes."))
|
||||
HasReceived.Add(target_mob.key)
|
||||
to_chat(target_mob, span_notice("[GLOB.is_valid_url.Replace(last_tip, span_linkify("$1"))]"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user