Skip to content

Instantly share code, notes, and snippets.

View egocarib's full-sized avatar
🌴
On vacation

egocarib

🌴
On vacation
View GitHub Profile
#Mod_Priority,#Mod_Status,#Mod_Name
"0000","-","Base_separator"
"0001","+","DLC: Dawnguard"
"0002","+","DLC: HearthFires"
"0003","+","DLC: Dragonborn"
"0004","+","Creation Club: ccvsvsse004-beafarmer"
"0005","+","Creation Club: ccvsvsse003-necroarts"
"0006","+","Creation Club: ccvsvsse002-pets"
"0007","+","Creation Club: ccvsvsse001-winter"
"0008","+","Creation Club: cctwbsse001-puzzledungeon"
using System.Collections.Generic;
using XRL.UI;
using XRL.Wish;
namespace MiscellaneousWishes
{
[HasWishCommand]
class PsiWeaponList
{
public static readonly List<string> MainOptions = new List<string>()
@egocarib
egocarib / SubmergedPatchWithDisableToggle.cs
Last active January 26, 2021 01:30
Example of submerged harmony patch with toggle
using HarmonyLib;
using XRL.World;
namespace WingysMod.HarmonyPatches
{
[HarmonyPatch(typeof(GameObject))]
public class Patch_PhaseAndFlightMatches
{
public static bool TemporarilyDisabled = false;
@egocarib
egocarib / SubmergedPatch.cs
Created January 22, 2021 23:17
Example of how to make phase/flight/movement work for submerged effect
using HarmonyLib;
using XRL.World;
namespace WingysMod.HarmonyPatches
{
[HarmonyPatch(typeof(GameObject))]
class Patch_PhaseAndFlightMatches
{
[HarmonyPostfix]
[HarmonyPatch("PhaseAndFlightMatches")]
@egocarib
egocarib / WorldZoneTiersWish.cs
Created December 25, 2020 00:58
A wish that will output the zone tiers of all world map parasangs into Player.log
[XRL.Wish.HasWishCommand]
class WorldZoneTierWish
{
[XRL.Wish.WishCommand(Command = "dumpzonetiers")]
public static void DumpZoneTiers()
{
string tierMap = "\n";
for (int j = 0; j < 25; j++)
{
for (int i = 0; i < 80; i++)
@egocarib
egocarib / RemoveFungalVisionWish.cs
Last active December 9, 2020 15:36
Removes fungal vision if it was wished for with fungalvision wish. You'll need to save this as a .cs file and put it in your Mods directory. For more info, see https://cavesofqud.gamepedia.com/Modding:Installing_a_mod
using XRL.Wish;
using XRL.World.Effects;
namespace MiscWishes
{
[HasWishCommand]
class RemoveFungalVisionWish
{
[WishCommand(Command = "removefungalvision")]
public static void SaveBlueprintTexture()
@egocarib
egocarib / HistorySpiceHelper.cs
Last active December 6, 2020 19:54
Helper Method to Add Data to HistorySpice.json
using SimpleJSON;
namespace YourModName
{
public static class History
{
// Adds an string to the specified history spice node array. For example, if we want to add
// a new item to the winter eremite profession array, we might call this method as follows:
//
// AddToHistorySpice("spice.professions.winter eremite.items", "snowy ideal");
@egocarib
egocarib / gist:59e1632fa13e601b294911a86f02a4ee
Created November 20, 2020 14:24
Historic Site / Sultan Info Dump
==============================================
SULTAN CULT INFO
==============================================
-----------------------------------------
SULTAN: Dapur I
-----------------------------------------
PERIOD: 1
SULTAN DOMAINS: [ice]
############### UNORDERED EVENTS START ##################
Gospel: 206 In 4273 BR, Antidokht II won a decisive victory against the combined forces of Saarrakesh Barrio at the bloody Battle of Kinevuh, though he lost his prized {{R-c-r-C-R-c-r-C sequence|Token's Star}} during the course of the conflict. As a result of the battle, Kinevuh was so rife with bad omens that it was renamed the Fateful Flats.
TombIn: 206 In the Year of the Abandoned Monk, Antidokht II vanquished the Astral-Temple Society, who usurped his star torus. Let the rotten luck of the Fateful Flats serve as testament to the might of Antidokht II and a lesson to those who would challenge him.
Gospel: 198 Sometime in 4281 BR, after several tumultuous years, the sultan of Qud abdicated the throne. Because of Antidokht II's reputation for murdering someone by flipping a coin and agreeing to kill either her or himself based on the outcome, he was chosen as the successor.
TombIn: 198 Remember the godly Year of the Viridian Companion,
------------------
TEST HISTORY 1:
------------------
*** Region added to history: the bulb-worshipping Autarchy of Kimor ***
------------New location: Sapad