<commit_before>/*
 * ArmorObjectTemplate.h
 *
 *  Created on: 01/06/2010
 *      Author: victor
 */

#ifndef ARMOROBJECTTEMPLATE_H_
#define ARMOROBJECTTEMPLATE_H_


#include "../SharedTangibleObjectTemplate.h"

class ArmorObjectTemplate : public SharedTangibleObjectTemplate {
	int healthEncumbrance;
	int actionEncumbrance;
	int mindEncumbrance;

	int rating;

	float kinetic;
	float energy;
	float electricity;
	float stun;
	float blast;
	float heat;
	float cold;
	float acid;
	float lightSaber;

	SortedVector<String> specialResistsVector;
	SortedVector<String> vulnerabilitesVector;

	float specialBase;

public:
	ArmorObjectTemplate() {

	}

	~ArmorObjectTemplate() {

	}

	void readObject(LuaObject* templateData) {
		SharedTangibleObjectTemplate::readObject(templateData);

		healthEncumbrance = templateData->getIntField("healthEncumbrance");<commit_msg>[Updated] Armor Template<commit_after>/*
 * ArmorObjectTemplate.h
 *
 *  Created on: 01/06/2010
 *      Author: victor
 */

#ifndef ARMOROBJECTTEMPLATE_H_
#define ARMOROBJECTTEMPLATE_H_


#include "../SharedTangibleObjectTemplate.h"

class ArmorObjectTemplate : public SharedTangibleObjectTemplate {
	int healthEncumbrance;
	int actionEncumbrance;
	int mindEncumbrance;

	int rating;

	float kinetic;
	float energy;
	float electricity;
	float stun;
	float blast;
	float heat;
	float cold;
	float acid;
	float lightSaber;

	SortedVector<String> specialResistsVector;
	SortedVector<String> vulnerabilitesVector;

	float specialBase;

public:
	ArmorObjectTemplate() {

	}

	~ArmorObjectTemplate() {

	}

	void readObject(LuaObject* templateData) {
		SharedTangibleObjectTemplate::readObject(templateData);

		LuaObject specialProtection = templateData->getObjectField("specialProtection");

		for (int i = 1; i <= specialProtection.getTableSize(); ++i) {
			specialResistsVector.add(specialProtection.getStringAt(i));
		}

		LuaObject vunerabilities = templateData->getObjectField("vunerability");

		for (int i = 1; i <= vunerabilities.getTableSize(); ++i) {
			vulnerabilitesVector.add(vunerabilities.getStringAt(i));
		}

		healthEncumbrance = templateData->getIntField("healthEncumbrance");
{'fraction_non_alphanumeric': 0.09660938225731537, 'fraction_numerical': 0.008360427310729215, 'mean_word_length': 5.627692307692308, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '4627426', 'n_tokens_mistral': 764, 'n_tokens_neox': 694, 'n_words': 139}