mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 22:57:39 +01:00
[MIRROR] Adds more tails into the game (#10701)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
41bb1a706d
commit
0ac03eaa3d
@@ -0,0 +1,19 @@
|
||||
/// Changes a few tails to their new paths.
|
||||
/datum/preferences/proc/migration_17_tails(datum/json_savefile/S)
|
||||
for(var/slot in 1 to CONFIG_GET(number/character_slots))
|
||||
var/list/prefs = S.get_entry("character[slot]", null)
|
||||
if(!islist(prefs))
|
||||
continue
|
||||
prefs["tail_style"] = replacetext(prefs["tail_style"], "Kitsune 3 tails - colorable", "Kitsune 3 tails, colorable")
|
||||
prefs["tail_style"] = replacetext(prefs["tail_style"], "Kitsune 9 tails - colorable", "Kitsune 9 tails, colorable")
|
||||
|
||||
prefs["tail_style"] = replacetext(prefs["tail_style"], "Male teshari tail(Pattern)", "Teshari male tail pattern")
|
||||
prefs["tail_style"] = replacetext(prefs["tail_style"], "Female teshari tail(Pattern)", "Teshari female tail pattern")
|
||||
|
||||
prefs["tail_style"] = replacetext(prefs["tail_style"], "Male teshari tail(Pattern, Alt.)", "Teshari male tail alt. pattern")
|
||||
prefs["tail_style"] = replacetext(prefs["tail_style"], "Female teshari tail(Pattern, Alt.)", "Teshari fem tail alt. pattern")
|
||||
|
||||
prefs["tail_style"] = replacetext(prefs["tail_style"], "feathered Raptor, duel colorable", "feathered Raptor, dual colorable")
|
||||
S.set_entry("character[slot]", prefs)
|
||||
|
||||
S.save()
|
||||
@@ -1,5 +1,5 @@
|
||||
#define SAVEFILE_VERSION_MIN 8
|
||||
#define SAVEFILE_VERSION_MAX 16
|
||||
#define SAVEFILE_VERSION_MAX 17
|
||||
|
||||
/*
|
||||
SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Carn
|
||||
@@ -79,6 +79,15 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
||||
log_debug("[client_ckey] preferences successfully migrated from [current_version] to v16.")
|
||||
to_chat(client, span_danger("v16 savefile migration complete."))
|
||||
|
||||
// Migration for old named tails so downstream doesn't have their savefiles borked
|
||||
if(current_version < 17)
|
||||
log_debug("[client_ckey] preferences migrating from [current_version] to v17....")
|
||||
to_chat(client, span_danger("Migrating savefile from version [current_version] to v17..."))
|
||||
|
||||
migration_17_tails(S)
|
||||
|
||||
log_debug("[client_ckey] preferences successfully migrated from [current_version] to v17.")
|
||||
to_chat(client, span_danger("v17 savefile migration complete."))
|
||||
|
||||
/datum/preferences/proc/update_character(current_version, list/save_data)
|
||||
// Migration from BYOND savefiles to JSON: Important milemark.
|
||||
|
||||
Reference in New Issue
Block a user