]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/Resources.cpp
added basic defeat state
[l2e.git] / src / battle / Resources.cpp
index 9db29e1787809613859b1daac68faadcfd7ae8e2..3e61cf5017621fcb57375fce9b26fc45edaf9c9b 100644 (file)
@@ -61,6 +61,7 @@ Resources::Resources()
 , noEquipmentText("MISSING TRANSLATION")
 
 , escapeText("MISSING TRANSLATION")
+, defeatText("MISSING TRANSLATION")
 
 , numberAnimationPrototype(0)
 , bigNumberSprite(0)
@@ -152,6 +153,7 @@ void Resources::CreateTypeDescription() {
        td.AddField("noEquipmentText", FieldDescription(((char *)&r.noEquipmentText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced().SetDescription("text to show for missing equipment"));
 
        td.AddField("escapeText", FieldDescription(((char *)&r.escapeText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced().SetDescription("displayed when the party escapes"));
+       td.AddField("defeatText", FieldDescription(((char *)&r.defeatText) - ((char *)&r), Interpreter::STRING_ID).SetReferenced().SetDescription("displayed when the party was defeated"));
 
        td.AddField("numberAnimationPrototype", FieldDescription(((char *)&r.numberAnimationPrototype) - ((char *)&r), Animation::TYPE_ID).SetReferenced().SetDescription("animation of an attack's result digit"));