Newer
Older
naledi / content / biomes.lisp
;;;;
;;;; Naledi ya Africa ("Star of Africa") is an ncurses-based survival game
;;;; set in Africa.
;;;;
;;;; Biomes are habitat types, that provide default functions for patches.
;;;; This file holds the biome definitions.
;;;; 
;;;; (c) 2018 Daniel Vedder, MIT license
;;;;

(in-package :naledi-ya-africa)

;;XXX lake?
;;TODO optimise frequency numbers

(new-biome grassland
	:ground "tall elephant grass"
	:char #\; :col :yellow
	:features '((acacia 100) (boulder 200)
				   (impala 500) (warthog 600)
				   (lion 2400) (leopard 3000)
				   (cheetah 2400) (elephant 800)
				   (buffalo 1000))) ;TODO

(new-biome forest
	:ground "leaf litter and small shrubs"
	:char #\. :col :green
	:features '((miombo 10) (acacia 15)
				   (warthog 500) (impala 800)
				   (elephant 1000) (leopard 3200))) ;TODO

(new-biome stream
	:ground "shallow flowing water"
	:char #\~ :col :blue
	:features '()) ;TODO

(new-biome swamp
	:ground "short sedge grass growing on boggy black soil"
	:char #\w :col :green
	:features '((warthog 500) (buffalo 400) (lion 3000))) ;TODO

(new-biome hill
	:ground "hard, stony soil"
	:char #\m :col :cyan ;XXX very bright - hurts the eyes...
	:features '((boulder 20) (miombo 80)
				   (warthog 600) (leopard 3200))) ;TODO

(new-biome desert
	:ground "deep, drifting sand"
	:char #\^ :col :white ;XXX yellow would be better, but shows up brown
	:features '((cactus 100) (boulder 200)
				   (oryx 800) (lion 3600))) ;TODO