#Add a CreateFromClone method to StatusEffectDataBuilder

1 messages · Page 1 of 1 (latest)

shell scroll
#

The method would set _data equal to a copy of an existing status effect currently in the game rather than creating a new instance from scratch. This saves time wasted copying almost every parameter of a vanilla status effect. Currently, I don't think there is a way to replace _data without publicizing the assembly.

pale perch
#

i think that alr exists

#

its called .Edit()

#

just clone it after doing edit if u dont wanna edit the original

shell scroll
#

Oh, .Edit() was part of the StatusEffectData class. That’s why I didn’t see it. Thanks!

pale perch
#

i think edit works on any data class

#

if u provide a working builder

shell scroll
#

Cool, I’ll keep that in mind

pale perch
#

.edit doesnt clone btw

#

so u should clone it urself first