| 777 | } |
| 778 | |
| 779 | void Organisation::adjustRelationTo(GameState &state, StateRef<Organisation> other, float value) |
| 780 | { |
| 781 | current_relations[other] = clamp(current_relations[other] + value, -100.0f, 100.0f); |
| 782 | // Mirror player relations except in battle |
| 783 | if (!state.current_battle && other == state.getPlayer()) |
| 784 | { |
| 785 | other->current_relations[{&state, id}] = current_relations[other]; |
| 786 | } |
| 787 | } |
| 788 | |
| 789 | Organisation::Relation Organisation::isRelatedTo(const StateRef<Organisation> &other) const |
| 790 | { |
no test coverage detected