Dialogue markup and lines, shared common folder, item atlases, ids, seconds and key checks
This commit is contained in:
1 parent
3e9a0cbd34
commit
f900a0d01f
217 files changed
+6833
-6426
No files matched your search
+2
-2
@@ -105,10 +105,10 @@ void Play::save()
|
||||
std::string text = fields_write(body.stats) + fields_write(*this);
|
||||
for (int i = 0; i < (int)items.discovered.size(); i++)
|
||||
if (items.discovered[i])
|
||||
text += std::string(KEY_DISCOVERED) + "=" + character->catalog.items[i].name + "\n";
|
||||
text += std::string(KEY_DISCOVERED) + "=" + character->catalog.items[i].id + "\n";
|
||||
for (ItemEntity& entity : items.list)
|
||||
text += std::string(KEY_ITEM) + "=" + field_write(entity.actor.position) + " " + field_write(entity.velocity) +
|
||||
" " + field_write(entity.actor.rotation.value_or(0)) + " " + character->catalog.items[entity.id].name +
|
||||
" " + field_write(entity.actor.rotation.value_or(0)) + " " + character->catalog.items[entity.id].id +
|
||||
"\n";
|
||||
file_write(character->save_path_get(), text);
|
||||
toast_add("Saving...");
|
||||
|
||||
Reference in new issue
Block a user