Skip to content

Instantly share code, notes, and snippets.

gource -f -1920x1080 --seconds-per-day 1 --key --auto-skip-seconds 1
// C++
#include "../Engine/Logger.h"
Log(LOG_INFO) << "We have UFO " << ruleDeploy->getUfoName() << "!";
- type: ADVENT_HIDEOUT
commands:
- type: addLine
direction: both
rects:
- [1, 1, 3, 3]
- type: checkBlock #Position 1,0
label: 100
blocks: [8, 9, 10, 11, 12, 13, 14, 15]
rects:
@Finnik723
Finnik723 / gist:7cc3156e99b30d12404893d24c22fbe3
Created August 1, 2019 20:34
STR_ADVANCED_BIO_LABORATORY
- type: STR_ADVANCED_BIO_LABORATORY
requires:
- STR_ADVANCED_BIO_LABORATORY
spriteShape: 1
spriteFacility: 871 #TODO
maxAllowedPerBase: 1
provideBaseFunc: [BIOLAB]
buildCost: 120000
buildTime: 26
monthlyCost: 80000
- type: STR_SKULLJACK
categories: [STR_XCOM_TECH, STR_EQUIPMENT, STR_PSI, STR_CONCEALABLE, STR_UNDERWATER, STR_SPACE]
requires:
- STR_SKULLJACK
size: 0.1
costSell: 80000
weight: 5
bigSprite: 794
floorSprite: 724
handSprite: 824
@Finnik723
Finnik723 / gist:7cc19b059b6a6f8c0bc8f84436a51b91
Last active July 6, 2019 20:28
events with month weights
class RuleEventScript
{
private:
std::string _type;
std::vector<std::pair<size_t, WeightedOptions*> > _eventWeights;
int _firstMonth, _lastMonth, _executionOdds, _maxEvents, _minDifficulty, _maxDifficulty;
std::map<std::string, bool> _researchTriggers;
public:
/// Creates a new event script.
RuleEventScript(const std::string& type);