From 362ad38104d28b24566bcb4aeff214af66301546 Mon Sep 17 00:00:00 2001 From: Anton Simakov <67688115+GuardianDll@users.noreply.github.com> Date: Sun, 8 Sep 2024 23:48:04 +0200 Subject: [PATCH] move more test stuff to test PR --- src/monster.cpp | 8 -------- src/monster.h | 1 - 2 files changed, 9 deletions(-) diff --git a/src/monster.cpp b/src/monster.cpp index 6807041c7d809..88999041be578 100644 --- a/src/monster.cpp +++ b/src/monster.cpp @@ -308,9 +308,6 @@ monster::monster( const mtype_id &id ) : monster() faction = type->default_faction; upgrades = type->upgrades && ( type->half_life || type->age_grow ); reproduces = type->reproduces && type->baby_timer && !monster::has_flag( mon_flag_NO_BREED ); - if( reproduces && type->baby_timer ) { - baby_timer.emplace( calendar::turn + *type->baby_timer ); - } biosignatures = type->biosignatures; if( monster::has_flag( mon_flag_AQUATIC ) ) { fish_population = dice( 1, 20 ); @@ -555,11 +552,6 @@ void monster::try_upgrade( bool pin_time ) } } -void monster::set_baby_timer( const time_point &time ) -{ - baby_timer.emplace( time ); -} - void monster::try_reproduce() { if( !reproduces ) { diff --git a/src/monster.h b/src/monster.h index d7494210e3697..efe7ac06169a1 100644 --- a/src/monster.h +++ b/src/monster.h @@ -114,7 +114,6 @@ class monster : public Creature int get_upgrade_time() const; void allow_upgrade(); void try_upgrade( bool pin_time ); - void set_baby_timer( const time_point &time ); void try_reproduce(); void try_biosignature(); void refill_udders();