Merge pull request #10992 from Ketrai/tigtweaks

Allows players to name their mobs.
This commit is contained in:
Aronai Sieyes
2021-07-10 15:42:16 -04:00
committed by GitHub
2 changed files with 34 additions and 0 deletions
@@ -1,6 +1,35 @@
/mob/living/simple_mob/vore
mob_class = MOB_CLASS_ANIMAL
mob_bump_flag = 0
var/nameset
/mob/living/simple_mob/vore/Login()
. = ..()
verbs |= /mob/living/simple_mob/vore/proc/set_name
verbs |= /mob/living/simple_mob/vore/proc/set_desc
/mob/living/simple_mob/vore/proc/set_name()
set name = "Set Name"
set desc = "Sets your mobs name. You only get to do this once."
set category = "Abilities"
if(nameset)
to_chat(src, "<span class='userdanger'>You've already set your name. Ask an admin to toggle \"nameset\" to 0 if you really must.</span>")
return
var/newname
newname = sanitizeSafe(input(src,"Set your name. You only get to do this once. Max 52 chars.", "Name set","") as text, MAX_NAME_LEN)
if (newname)
name = newname
voice_name = newname
nameset = 1
/mob/living/simple_mob/vore/proc/set_desc()
set name = "Set Description"
set desc = "Set your description."
set category = "Abilities"
var/newdesc
newdesc = sanitizeSafe(input(src,"Set your description. Max 4096 chars.", "Description set","") as text, MAX_MESSAGE_LEN)
if(newdesc)
desc = newdesc
/mob/living/simple_mob/vore/aggressive
mob_bump_flag = HEAVY
@@ -12,6 +12,7 @@
faction = "panther"
maxHealth = 150
health = 150
movement_cooldown = 2
response_help = "pats"
response_disarm = "gently pushes aside"
@@ -25,6 +26,10 @@
say_list_type = /datum/say_list/weretiger
ai_holder_type = /datum/ai_holder/simple_mob/retaliate
pixel_x = -16
has_hands = 1
// Nomnomn
/mob/living/simple_mob/vore/weretiger
vore_active = 1