mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
move to modular folder
This commit is contained in:
@@ -241,10 +241,6 @@ I think I covered everything.
|
|||||||
verbs |= /mob/living/simple_mob/vore/bigdragon/proc/sprite_toggle
|
verbs |= /mob/living/simple_mob/vore/bigdragon/proc/sprite_toggle
|
||||||
verbs |= /mob/living/simple_mob/vore/bigdragon/proc/flame_toggle
|
verbs |= /mob/living/simple_mob/vore/bigdragon/proc/flame_toggle
|
||||||
verbs |= /mob/living/simple_mob/vore/bigdragon/proc/special_toggle
|
verbs |= /mob/living/simple_mob/vore/bigdragon/proc/special_toggle
|
||||||
//CHOMPEdit start - Add export/import style verbs
|
|
||||||
verbs |= /mob/living/simple_mob/vore/bigdragon/proc/export_style
|
|
||||||
verbs |= /mob/living/simple_mob/vore/bigdragon/proc/import_style
|
|
||||||
//CHOMPEdit end
|
|
||||||
//verbs |= /mob/living/simple_mob/vore/bigdragon/proc/set_name //Implemented upstream
|
//verbs |= /mob/living/simple_mob/vore/bigdragon/proc/set_name //Implemented upstream
|
||||||
//verbs |= /mob/living/simple_mob/vore/bigdragon/proc/set_desc //Implemented upstream
|
//verbs |= /mob/living/simple_mob/vore/bigdragon/proc/set_desc //Implemented upstream
|
||||||
faction = "neutral"
|
faction = "neutral"
|
||||||
@@ -502,68 +498,6 @@ I think I covered everything.
|
|||||||
if(.)
|
if(.)
|
||||||
build_icons()
|
build_icons()
|
||||||
|
|
||||||
//CHOMPEdit start - Add export/import style verbs
|
|
||||||
/mob/living/simple_mob/vore/bigdragon/proc/export_style()
|
|
||||||
set name = "Export style string"
|
|
||||||
set desc = "Export a string of text that can be used to instantly get the current style back using the import style verb"
|
|
||||||
set category = "Abilities"
|
|
||||||
var/output_style = jointext(list(
|
|
||||||
overlay_colors["Underbelly"],
|
|
||||||
under,
|
|
||||||
overlay_colors["Body"],
|
|
||||||
body,
|
|
||||||
overlay_colors["Ears"],
|
|
||||||
ears,
|
|
||||||
overlay_colors["Mane"],
|
|
||||||
mane,
|
|
||||||
overlay_colors["Horns"],
|
|
||||||
horns,
|
|
||||||
overlay_colors["Eyes"],
|
|
||||||
eyes), ";")
|
|
||||||
to_chat(src, "<span class='notice'>Exported style string is \" [output_style] \". Use this to get the same style in the future with import style</span>")
|
|
||||||
|
|
||||||
/mob/living/simple_mob/vore/bigdragon/proc/import_style()
|
|
||||||
set name = "Import style string"
|
|
||||||
set desc = "Import a string of text that was made using the import style verb to get back that style"
|
|
||||||
set category = "Abilities"
|
|
||||||
var/input_style
|
|
||||||
input_style = sanitizeSafe(input(src,"Paste the style string you exported with Export Style.", "Style loading","") as text, MAX_MESSAGE_LEN)
|
|
||||||
if(input_style)
|
|
||||||
var/list/input_style_list = splittext(input_style, ";")
|
|
||||||
if((LAZYLEN(input_style_list) == 12) && (input_style_list[2] in underbelly_styles) && (input_style_list[4] in body_styles) && (input_style_list[6] in ear_styles) && (input_style_list[8] in mane_styles) && (input_style_list[10] in horn_styles) && (input_style_list[12] in ear_styles))
|
|
||||||
try
|
|
||||||
if(rgb2num(input_style_list[1]))
|
|
||||||
overlay_colors["Underbelly"] = input_style_list[1]
|
|
||||||
catch
|
|
||||||
under = input_style_list[2]
|
|
||||||
try
|
|
||||||
if(rgb2num(input_style_list[3]))
|
|
||||||
overlay_colors["Body"] = input_style_list[3]
|
|
||||||
catch
|
|
||||||
body = input_style_list[4]
|
|
||||||
try
|
|
||||||
if(rgb2num(input_style_list[5]))
|
|
||||||
overlay_colors["Ears"] = input_style_list[5]
|
|
||||||
catch
|
|
||||||
ears = input_style_list[6]
|
|
||||||
try
|
|
||||||
if(rgb2num(input_style_list[7]))
|
|
||||||
overlay_colors["Mane"] = input_style_list[7]
|
|
||||||
catch
|
|
||||||
mane = input_style_list[8]
|
|
||||||
try
|
|
||||||
if(rgb2num(input_style_list[9]))
|
|
||||||
overlay_colors["Horns"] = input_style_list[9]
|
|
||||||
catch
|
|
||||||
horns = input_style_list[10]
|
|
||||||
try
|
|
||||||
if(rgb2num(input_style_list[11]))
|
|
||||||
overlay_colors["Eyes"] = input_style_list[11]
|
|
||||||
catch
|
|
||||||
eyes = input_style_list[12]
|
|
||||||
build_icons()
|
|
||||||
//CHOMPEdit End
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Vore stuff
|
/// Vore stuff
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -0,0 +1,64 @@
|
|||||||
|
/mob/living/simple_mob/vore/bigdragon/Login()
|
||||||
|
. = ..()
|
||||||
|
verbs |= /mob/living/simple_mob/vore/bigdragon/proc/export_style
|
||||||
|
verbs |= /mob/living/simple_mob/vore/bigdragon/proc/import_style
|
||||||
|
|
||||||
|
/mob/living/simple_mob/vore/bigdragon/proc/export_style()
|
||||||
|
set name = "Export style string"
|
||||||
|
set desc = "Export a string of text that can be used to instantly get the current style back using the import style verb"
|
||||||
|
set category = "Abilities"
|
||||||
|
var/output_style = jointext(list(
|
||||||
|
overlay_colors["Underbelly"],
|
||||||
|
under,
|
||||||
|
overlay_colors["Body"],
|
||||||
|
body,
|
||||||
|
overlay_colors["Ears"],
|
||||||
|
ears,
|
||||||
|
overlay_colors["Mane"],
|
||||||
|
mane,
|
||||||
|
overlay_colors["Horns"],
|
||||||
|
horns,
|
||||||
|
overlay_colors["Eyes"],
|
||||||
|
eyes), ";")
|
||||||
|
to_chat(src, "<span class='notice'>Exported style string is \" [output_style] \". Use this to get the same style in the future with import style</span>")
|
||||||
|
|
||||||
|
/mob/living/simple_mob/vore/bigdragon/proc/import_style()
|
||||||
|
set name = "Import style string"
|
||||||
|
set desc = "Import a string of text that was made using the import style verb to get back that style"
|
||||||
|
set category = "Abilities"
|
||||||
|
var/input_style
|
||||||
|
input_style = sanitizeSafe(input(src,"Paste the style string you exported with Export Style.", "Style loading","") as text, MAX_MESSAGE_LEN)
|
||||||
|
if(input_style)
|
||||||
|
var/list/input_style_list = splittext(input_style, ";")
|
||||||
|
if((LAZYLEN(input_style_list) == 12) && (input_style_list[2] in underbelly_styles) && (input_style_list[4] in body_styles) && (input_style_list[6] in ear_styles) && (input_style_list[8] in mane_styles) && (input_style_list[10] in horn_styles) && (input_style_list[12] in ear_styles))
|
||||||
|
try
|
||||||
|
if(rgb2num(input_style_list[1]))
|
||||||
|
overlay_colors["Underbelly"] = input_style_list[1]
|
||||||
|
catch
|
||||||
|
under = input_style_list[2]
|
||||||
|
try
|
||||||
|
if(rgb2num(input_style_list[3]))
|
||||||
|
overlay_colors["Body"] = input_style_list[3]
|
||||||
|
catch
|
||||||
|
body = input_style_list[4]
|
||||||
|
try
|
||||||
|
if(rgb2num(input_style_list[5]))
|
||||||
|
overlay_colors["Ears"] = input_style_list[5]
|
||||||
|
catch
|
||||||
|
ears = input_style_list[6]
|
||||||
|
try
|
||||||
|
if(rgb2num(input_style_list[7]))
|
||||||
|
overlay_colors["Mane"] = input_style_list[7]
|
||||||
|
catch
|
||||||
|
mane = input_style_list[8]
|
||||||
|
try
|
||||||
|
if(rgb2num(input_style_list[9]))
|
||||||
|
overlay_colors["Horns"] = input_style_list[9]
|
||||||
|
catch
|
||||||
|
horns = input_style_list[10]
|
||||||
|
try
|
||||||
|
if(rgb2num(input_style_list[11]))
|
||||||
|
overlay_colors["Eyes"] = input_style_list[11]
|
||||||
|
catch
|
||||||
|
eyes = input_style_list[12]
|
||||||
|
build_icons()
|
||||||
@@ -4489,4 +4489,5 @@
|
|||||||
#include "modular_chomp\code\modules\mob\living\carbon\human\species\station\protean\protean_powers.dm"
|
#include "modular_chomp\code\modules\mob\living\carbon\human\species\station\protean\protean_powers.dm"
|
||||||
#include "modular_chomp\code\modules\mob\living\carbon\human\species\station\protean\protean_rig.dm"
|
#include "modular_chomp\code\modules\mob\living\carbon\human\species\station\protean\protean_rig.dm"
|
||||||
#include "modular_chomp\code\modules\mob\living\carbon\human\species\station\protean\protean_species.dm"
|
#include "modular_chomp\code\modules\mob\living\carbon\human\species\station\protean\protean_species.dm"
|
||||||
|
#include "modular_chomp\code\modules\mob\living\simple_mob\subtypes\vore\bigdragon.dm"
|
||||||
// END_INCLUDE
|
// END_INCLUDE
|
||||||
|
|||||||
Reference in New Issue
Block a user