Set the string for the characteristic @param key @param s
(PCStringKey key, String s)
| 6928 | * @param s |
| 6929 | */ |
| 6930 | public void setStringFor(PCStringKey key, String s) |
| 6931 | { |
| 6932 | assert (key != null); |
| 6933 | String currValue = factFacet.get(id, key); |
| 6934 | if (PlayerCharacter.shouldDirtyForChange(s, currValue)) |
| 6935 | { |
| 6936 | factFacet.set(id, key, s); |
| 6937 | setDirty(true); |
| 6938 | } |
| 6939 | } |
| 6940 | |
| 6941 | private static boolean shouldDirtyForChange(final String s, final String currValue) |
| 6942 | { |