Max life point.
This commit is contained in:
		
					parent
					
						
							
								1a07874ff2
							
						
					
				
			
			
				commit
				
					
						67967051f2
					
				
			
		
					 2 changed files with 12 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -8,12 +8,19 @@
 | 
			
		|||
#include <cstdint>
 | 
			
		||||
 | 
			
		||||
namespace character::characteristic {
 | 
			
		||||
	class Endurance {
 | 
			
		||||
	class Endurance final {
 | 
			
		||||
	private:
 | 
			
		||||
		const std::uint32_t base{ 2 };
 | 
			
		||||
		std::uint32_t carac{ 0 };
 | 
			
		||||
		std::uint32_t materiel{ 0 };
 | 
			
		||||
		std::uint32_t additional{ 0 };
 | 
			
		||||
 | 
			
		||||
	public:
 | 
			
		||||
		Endurance() noexcept = default;
 | 
			
		||||
 | 
			
		||||
		~Endurance() noexcept = default;
 | 
			
		||||
 | 
			
		||||
		[[nodiscard]] std::uint32_t get_max_lp() const noexcept;
 | 
			
		||||
	};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1 +1,5 @@
 | 
			
		|||
#include "characteristic/endurance.hpp"
 | 
			
		||||
 | 
			
		||||
std::uint32_t character::characteristic::Endurance::get_max_lp() const noexcept {
 | 
			
		||||
	return (base + carac + materiel + additional) * 3;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue