Skip to content

Instantly share code, notes, and snippets.

View jkbbwr's full-sized avatar
💭
???

Jakob Bowyer jkbbwr

💭
???
View GitHub Profile

AIRSHIPS - MASTER RULES V1.7.1

1. GENERIC RULES

  • Line of Sight (LOS): Ships cannot fire through other ships or islands if the blocking object is at the same elevation band as the firing line (see Floating Islands).
  • Firing Arcs: Forward, Port, Starboard, and Aft slots have a 90° firing arc centered on the ship's cardinal directions.
  • Height Advantage: +1 Skill if the attacker is above the target; -1 Skill if the attacker is below the target.
    • Height modifiers do not apply to Flak weapons or Ultralight units.
  • Ultralight Evasion: Ultralights cannot be Target Locked and ignore the effects of any Skill-boosting CMD actions from the attacker.
  • To-Hit Limits: Modified Skill cannot be better than 2+ or worse than 6+. 7+ is impossible.

Keybase proof

I hereby claim:

  • I am jkbbwr on github.
  • I am jkbbwr (https://keybase.io/jkbbwr) on keybase.
  • I have a public key ASDGuqwXbjyvbFK3i_LDpEHqHpG42Yl3XAeGLKrxh56hHgo

To claim this, I am signing this object:

@jkbbwr
jkbbwr / ircbot.awk
Created August 8, 2016 11:52 — forked from ilmoeuro/ircbot.awk
AWK ircbot, usage with ncat is left as an exercise for the reader
function message(str) {
system("sleep 0.1");
printf("%s\r\n", str);
printf(">>> %s\n", str) > "/dev/stderr";
system("sleep 0.1");
}
{
printf("<<< %s", $0) > "/dev/stderr";
if (! initialized) {
def tuplecpy(dst, src, begin_offset):
"""
Of course this function should NEVER be used in real code
It will probably result in segfaults/crashes
- copy tuple(src) to dst[begin_offset:] tuple
- remember id(x) -> addressof(x)
"""
OFFSET = ctypes.sizeof(ctypes.c_size_t) * 3
PTR_SIZE = ctypes.sizeof(ctypes.c_size_t)
dst_addr = id(dst) + OFFSET + PTR_SIZE * begin_offset
(ノ◕ヮ◕)ノ*:・ ゚ ゚✧