Skip to content

Commit 1e38797

Browse files
committed
compiles
1 parent 95a88a1 commit 1e38797

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

source/native/symbulation_antibiotic.cc

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,13 @@ int symbulation_main(int argc, char *argv[]) {
4949
using sgp_sym_t = sgpmode::SGPWorld::sgp_sym_t;
5050
emp::Ptr<sgpmode::SGPWorld> human_micro = human.GetMicrobiome();
5151

52-
fun_sym_do_birth = [this](
53-
emp::Ptr<sgp_sym_t> sym_baby_ptr,
54-
const emp::WorldPosition& parent_pos
55-
) -> emp::WorldPosition {
56-
return FreeLivingSymDoBirth(sym_baby_ptr, parent_pos);
57-
}
5852
human_micro->SetCheckSymIndependentReproReqsFunctor([human_micro](
59-
emp::Ptr<sgp_host_t> host,
60-
emp::Ptr<sgp_sym_t> symbiont) {
53+
Organism& symbiont) {
6154
//Hosts pay the cost instead of symbionts
62-
return host->GetPoints() >= 1; // TODO: change to using config that is captured
55+
return symbiont.GetHost()->GetPoints() >= human_micro->GetConfig().SYM_HORIZ_TRANS_RES(); // TODO: change to using config that is captured
6356
});
6457

65-
human_micro->SetPaySymIndependentReproCostFunctor([](sgp_sym_t& symbiont) {
58+
human_micro->SetPaySymIndependentReproCostFunctor([](Organism& symbiont) {
6659
//Hosts pay the cost instead of symbionts
6760
symbiont.GetHost()->AddPoints(-1);
6861
});

0 commit comments

Comments
 (0)