Skip to content

Instantly share code, notes, and snippets.

View Lokathor's full-sized avatar
🌴
Workin' on Rust Stuff

Lokathor Lokathor

🌴
Workin' on Rust Stuff
View GitHub Profile
@Lokathor
Lokathor / zeldawn.md
Last active October 7, 2018 04:36
A re-skinning of Earthdawn 4e

The Legend of Zeldawn

The Legend of Zeldawn is a "reskinning" of Earthdawn 4e. The editions of Earthdawn are sufficiently close to one another, so this would probably work with any other edition too, but 4e is the primary target.

Races

The Kingdom of Hyrule is home to the following Namegiver races.

Altered Dragon

Altered Dragon is a (relatively) rules light fantasy adventure game based upon the mechanics of dice pool games and the stories/ settings/ themes of classical fantasy adventure games.

Core Mechanic / Game Terms

The core mechanic of Altered Dragon is a "dice pool" roll. When a player wants

  • Introduction
    • Goals Of This Book
    • Prerequisites
    • Getting Outside Help
    • Development Setup
    • Hello Magic
    • Volatile
    • Core Only
  • Broad Concepts
//! Operations which rely on use of `std`. Not included by default.
use std::sync::{
atomic::{AtomicPtr, Ordering},
Mutex, MutexGuard,
};
/// Uses the system clock to get an arbitrary `u64` value.
pub fn u64_from_time() -> u64 {
use std::time::{SystemTime, UNIX_EPOCH};
  • Feature Name: platform_channel_section
  • Start Date: 2019-02-27
  • RFC PR: (leave this empty)
  • Rust Issue: (leave this empty)

Summary

We add a whole new section to the channels list for Platform channels. It contains one channel for each major target platform (Win, Mac, etc).

input_device = "USB,2-axis 8-button gamepad "
input_driver = "udev"
input_a_btn = "0"
input_b_btn = "1"
input_x_btn = "2"
input_y_btn = "3"
input_l_btn = "4"
input_r_btn = "5"
input_select_btn = "6"

Houserules 2e

  • The Core Rules are the For Gold and Glory book, which is a retro-clone of ADnD 2e Revised.
  • Stats are rolled with 4d4+4 in order. You can thank Acid for this one.
  • Weapon Proficiency is mostly using the Baldur's Gate 1 system, because that lets people use more of the random loot that they find. * You buy proficiency via Weapon Groups. Adding 1 rank to a weapon group is 1 Combat

Earthdawn Game

blank character sheet

General Rules

  • The rules will default to the Earthdawn 4e rules.
  • If a rule is missing from 4e but present in a previous edition then we might use the rule from the previous edition (if it's sane and such).

Specific House Rules

@Lokathor
Lokathor / magic_macro.md
Last active December 8, 2019 15:46
Blog post about how to build `cfg_if` style macro.

Diving in to cfg_if!

How exactly does the cfg_if! macro do its thing?

First of all what is the cfg_if! macro? It's a macro to help you pick a set of code based on compile-time configutation. There is a sample usage on the docs page:

Cargo Crev Quickstart

You should consider using cargo-crev more often.

  • Installation: You need to obtain OpenSLL, and then cargo install cargo-crev
  • (All commands from here are for cargo-crev 0.13.0; command usage may change in the future)
  • Make Your ID: cargo crev id new --url [repo_url]
    • This prompts for a password that will protect the ID.
    • This is the cryptographic style "you can't ever recover this" type of password.
    • Keep it secret and keep it safe.