<commit_before>//Basic class for castable spells in the game
/*class Spell {
protected:
	string title;
	string description;
	int value;
	int mana_cost;
	int range;
	Stats target_stat;

public:
*/
#include <sstream>
#include <string>
#include "enums.h"
#include "spell.h"

	//get functions
	std::string Spell::get_title() {
		return title;
	}
	std::string Spell::get_description() {
		return description;
	}
	std::int Spell::get_range() {
		return range;
	}
	void Spell::cast_spell(Entity& casting_char, Entity& target)	{
		target.AlterStat(target_stat, false, value);
	}
	//todo: value dependent on casting character stats




//example spell

/* old; spells are in the table instead
class fireball : public Spell
{
public:
	fireball() {
		this->value = 5;
		this->range = 3;
		this->mana_cost = 5;
		this->title = "Fireball";
		this->description = "Basic fireball";
	}
};
*/
<commit_msg>fix compile errors<commit_after>//Basic class for castable spells in the game
/*class Spell {
protected:
	string title;
	string description;
	int value;
	int mana_cost;
	int range;
	Stats target_stat;

public:
*/
#include <sstream>
#include <string>
#include "enums.h"
#include "spell.h"

	//get functions
	std::string Spell::get_title() {
		return title;
	}
	std::string Spell::get_description() {
		return description;
	}
	int Spell::get_range() {
		return range;
	}
	void Spell::cast_spell(Entity& casting_char, Entity& target)	{
		target.AlterStat(target_stat, false, value);
	}
	//todo: value dependent on casting character stats




//example spell

/* old; spells are in the table instead
class fireball : public Spell
{
public:
	fireball() {
		this->value = 5;
		this->range = 3;
		this->mana_cost = 5;
		this->title = "Fireball";
		this->description = "Basic fireball";
	}
};
*/

{'fraction_non_alphanumeric': 0.1257995735607676, 'fraction_numerical': 0.0031982942430703624, 'mean_word_length': 3.19910514541387, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3331144', 'n_tokens_mistral': 683, 'n_tokens_neox': 651, 'n_words': 176}