mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
back compatibility with older animations
This commit is contained in:
parent
440092ff57
commit
670e0ffc32
3 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -108,7 +108,7 @@ namespace Rimworld_Animations {
|
||||||
Log.Message("Selecting animation for interaction type " + sexProps.DictionaryKey.defName + "...");
|
Log.Message("Selecting animation for interaction type " + sexProps.DictionaryKey.defName + "...");
|
||||||
return optionsWithInteractionType.RandomElement();
|
return optionsWithInteractionType.RandomElement();
|
||||||
}
|
}
|
||||||
List<AnimationDef> optionsWithSexType = options.ToList().FindAll(x => x.sexTypes.Contains(sexType));
|
List<AnimationDef> optionsWithSexType = options.ToList().FindAll(x => x.sexTypes != null && x.sexTypes.Contains(sexType));
|
||||||
if (optionsWithSexType.Any()) {
|
if (optionsWithSexType.Any()) {
|
||||||
if (AnimationSettings.debugMode)
|
if (AnimationSettings.debugMode)
|
||||||
Log.Message("Selecting animation for rjwSexType " + sexType.ToStringSafe() + "...");
|
Log.Message("Selecting animation for rjwSexType " + sexType.ToStringSafe() + "...");
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace Rimworld_Animations {
|
||||||
public List<Actor> actors;
|
public List<Actor> actors;
|
||||||
public int animationTimeTicks = 0; //do not set manually
|
public int animationTimeTicks = 0; //do not set manually
|
||||||
public bool sounds = false;
|
public bool sounds = false;
|
||||||
public List<rjw.xxx.rjwSextype> sexTypes;
|
public List<rjw.xxx.rjwSextype> sexTypes = null;
|
||||||
public List<InteractionDef> interactionDefTypes = null;
|
public List<InteractionDef> interactionDefTypes = null;
|
||||||
|
|
||||||
public override void PostLoad() {
|
public override void PostLoad() {
|
||||||
|
|
Loading…
Reference in a new issue