diff --git a/app/commands.py b/app/commands.py index aaa2e65..aad57b9 100644 --- a/app/commands.py +++ b/app/commands.py @@ -5,7 +5,7 @@ import string import datetime from flask_user import current_app from app import db -from app.models import Account, PlayKey, CharacterInfo, Property, PropertyContent, UGC, Mail +from app.models import Account, PlayKey, CharacterInfo, Property, PropertyContent, UGC, Mail, CharacterXML import pathlib import zlib from wand import image @@ -180,6 +180,17 @@ def load_property(zone, player): ) new_prop_content.save() +@click.command("remove_buffs") +@with_appcontext +def remove_buffs(): + """Clears all buff from all characters""" + chars = CharacterXML.query.all() + for char in chars: + character_xml = ET.XML(character_data.xml_data.replace("\"stt=", "\" stt=")) + dest = character_xml.find(".//buff...") + dest.remove(character_xml.find(".//buff")) + character_data.save() + @click.command("gen_image_cache") def gen_image_cache(): diff --git a/app/templates/partials/_property.html.j2 b/app/templates/partials/_property.html.j2 index d2ff220..77e5b2b 100644 --- a/app/templates/partials/_property.html.j2 +++ b/app/templates/partials/_property.html.j2 @@ -77,6 +77,14 @@ {{ property.performance_cost }} +
+
+ Clone ID: +
+
+ {{ property.clone_id }} +
+
{% if request.endpoint != "properties.view" %}