diff --git a/app/src/main/java/com/kauron/dungeonmanager/Power.java b/app/src/main/java/com/kauron/dungeonmanager/Power.java
index 7ab578b..2911c55 100644
--- a/app/src/main/java/com/kauron/dungeonmanager/Power.java
+++ b/app/src/main/java/com/kauron/dungeonmanager/Power.java
@@ -103,4 +103,20 @@ class Power implements Serializable{
return context.getResources().getColor(R.color.at_will);
}
}
+
+ void saveToPreferences(SharedPreferences sav) {
+ SharedPreferences.Editor e = sav.edit();
+ e.putString("s0", name);
+ e.putString("s1", keywords);
+ e.putString("s2", impact);
+ e.putString("s3", distance);
+ e.putString("s4", objective);
+ e.putBoolean("used", used);
+ e.putInt("i0", freq);
+ e.putInt("i1", range);
+ e.putInt("i2", atk);
+ e.putInt("i3", def);
+ e.putInt("i4", action);
+ e.apply();
+ }
}
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 68408ab..c7460b7 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -211,5 +211,7 @@
Save changes?
No
Can\'t be saved. Another power already has that name.
+ The power %s already exists and hasn\'t been copied
+ Import completed without errors