Saving (wip), statuseffect refactoring, multiple character faces

This commit is contained in:
Regalis
2015-06-12 16:56:51 +03:00
parent 270efd77e0
commit 566d54197a
35 changed files with 640 additions and 268 deletions
+4
View File
@@ -227,7 +227,11 @@ namespace Subsurface
string spritePath = subElement.Attribute("texture").Value;
if (character.info!=null)
{
spritePath = spritePath.Replace("[GENDER]", (character.info.gender == Gender.Female) ? "f" : "");
spritePath = spritePath.Replace("[HEADID]", character.info.headSpriteId.ToString());
}
sprite = new Sprite(subElement, "", spritePath);
break;