MCPcopy Create free account
hub / github.com/davemoore22/sorcery / operator<<

Function operator<<

src/core/controller.cpp:1421–1436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1419
1420 DEBUG_LOGF("Stepper Button Click: {} {}", component, positive);
1421
1422 auto candidate{_ctx.game->creation_candidate};
1423
1424 if (component.starts_with("##stepper_attribute_")) {
1425
1426 if (positive) {
1427
1428 // Up: If we have points left and the value is less than 18
1429 if ((candidate->get_points_left() > 0) && (*data <= 17)) {
1430
1431 (*data)++;
1432 candidate->set_points_left(candidate->get_points_left() - 1);
1433 candidate->set_pos_class();
1434 }
1435
1436 } else {
1437
1438 if (candidate->get_points_left() < candidate->get_start_points()) {
1439

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected