mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
@@ -81,6 +81,7 @@
|
||||
#define VV_HK_ADD_REAGENT "addreagent"
|
||||
#define VV_HK_TRIGGER_EMP "empulse"
|
||||
#define VV_HK_TRIGGER_EXPLOSION "explode"
|
||||
#define VV_HK_AUTO_RENAME "auto_rename"
|
||||
|
||||
// /obj
|
||||
#define VV_HK_OSAY "osay"
|
||||
|
||||
+8
-1
@@ -925,11 +925,15 @@
|
||||
var/angle = input(usr, "Choose angle to rotate","Transform Mod") as null|num
|
||||
if(!isnull(angle))
|
||||
transform = M.Turn(angle)
|
||||
if(href_list[VV_HK_AUTO_RENAME] && check_rights(R_VAREDIT))
|
||||
var/newname = input(usr, "What do you want to rename this to?", "Automatic Rename") as null|text
|
||||
if(newname)
|
||||
vv_auto_rename(newname)
|
||||
|
||||
/atom/vv_get_header()
|
||||
. = ..()
|
||||
var/refid = REF(src)
|
||||
. += "[VV_HREF_TARGETREF_1V(refid, VV_HK_BASIC_EDIT, "<b id='name'>[src]</b>", NAMEOF(src, name))]"
|
||||
. += "[VV_HREF_TARGETREF(refid, VV_HK_AUTO_RENAME, "<b id='name'>[src]</b>")]"
|
||||
. += "<br><font size='1'><a href='?_src_=vars;[HrefToken()];rotatedatum=[refid];rotatedir=left'><<</a> <a href='?_src_=vars;[HrefToken()];datumedit=[refid];varnameedit=dir' id='dir'>[dir2text(dir) || dir]</a> <a href='?_src_=vars;[HrefToken()];rotatedatum=[refid];rotatedir=right'>>></a></font>"
|
||||
|
||||
///Where atoms should drop if taken from this atom
|
||||
@@ -939,6 +943,9 @@
|
||||
return null
|
||||
return L.AllowDrop() ? L : L.drop_location()
|
||||
|
||||
/atom/proc/vv_auto_rename(newname)
|
||||
name = newname
|
||||
|
||||
/**
|
||||
* An atom has entered this atom's contents
|
||||
*
|
||||
|
||||
+15
-11
@@ -11,11 +11,11 @@
|
||||
* Unsets the focus var
|
||||
*
|
||||
* Clears alerts for this mob
|
||||
*
|
||||
*
|
||||
* Resets all the observers perspectives to the tile this mob is on
|
||||
*
|
||||
*
|
||||
* qdels any client colours in place on this mob
|
||||
*
|
||||
*
|
||||
* Ghostizes the client attached to this mob
|
||||
*
|
||||
* Parent call
|
||||
@@ -48,7 +48,7 @@
|
||||
*
|
||||
* Sends global signal COMSIG_GLOB_MOB_CREATED
|
||||
*
|
||||
* Adds to global lists
|
||||
* Adds to global lists
|
||||
* * GLOB.mob_list
|
||||
* * GLOB.mob_directory (by tag)
|
||||
* * GLOB.dead_mob_list - if mob is dead
|
||||
@@ -134,7 +134,7 @@
|
||||
/mob/proc/get_photo_description(obj/item/camera/camera)
|
||||
return "a ... thing?"
|
||||
|
||||
/**
|
||||
/**
|
||||
* Show a message to this mob (visual)
|
||||
*/
|
||||
/mob/proc/show_message(msg, type, alt_msg, alt_type)//Message, type of message (1 or 2), alternative message, alt message type (1 or 2)
|
||||
@@ -169,7 +169,7 @@
|
||||
|
||||
/**
|
||||
* Generate a visible message from this atom
|
||||
*
|
||||
*
|
||||
* Show a message to all player mobs who sees this atom
|
||||
*
|
||||
* Show a message to the src mob (if the src is a mob)
|
||||
@@ -325,7 +325,7 @@
|
||||
return
|
||||
|
||||
/**
|
||||
* Equip an item to the slot or delete
|
||||
* Equip an item to the slot or delete
|
||||
*
|
||||
* This is just a commonly used configuration for the equip_to_slot_if_possible() proc, used to
|
||||
* equip people when the round starts and when events happen and such.
|
||||
@@ -542,7 +542,7 @@
|
||||
memory_throttle_time = world.time + 5 SECONDS
|
||||
msg = copytext(msg, 1, MAX_MESSAGE_LEN)
|
||||
msg = sanitize(msg)
|
||||
|
||||
|
||||
mind.store_memory(msg)
|
||||
else
|
||||
to_chat(src, "You don't have a mind datum for some reason, so you can't add a note to it.")
|
||||
@@ -671,7 +671,7 @@
|
||||
return
|
||||
if(isAI(M))
|
||||
return
|
||||
/**
|
||||
/**
|
||||
* Handle the result of a click drag onto this mob
|
||||
*
|
||||
* For mobs this just shows the inventory
|
||||
@@ -688,7 +688,7 @@
|
||||
|
||||
/**
|
||||
* Output an update to the stat panel for the client
|
||||
*
|
||||
*
|
||||
* calculates client ping, round id, server time, time dilation and other data about the round
|
||||
* and puts it in the mob status panel on a regular loop
|
||||
*/
|
||||
@@ -1006,7 +1006,7 @@
|
||||
* Fully update the name of a mob
|
||||
*
|
||||
* This will update a mob's name, real_name, mind.name, GLOB.data_core records, pda, id and traitor text
|
||||
*
|
||||
*
|
||||
* Calling this proc without an oldname will only update the mob and skip updating the pda, id and records ~Carn
|
||||
*/
|
||||
/mob/proc/fully_replace_character_name(oldname,newname)
|
||||
@@ -1197,6 +1197,10 @@
|
||||
return debug_variable(var_name, logging, 0, src, FALSE)
|
||||
. = ..()
|
||||
|
||||
/mob/vv_auto_rename(new_name)
|
||||
//Do not do parent's actions, as we *usually* do this differently.
|
||||
fully_replace_character_name(real_name, new_name)
|
||||
|
||||
///Show the language menu for this mob
|
||||
/mob/verb/open_language_menu()
|
||||
set name = "Open Language Menu"
|
||||
|
||||
Reference in New Issue
Block a user