Skip to content

Instantly share code, notes, and snippets.

@hikari-no-yume
Created May 1, 2011 17:42
Show Gist options
  • Save hikari-no-yume/950672 to your computer and use it in GitHub Desktop.
Save hikari-no-yume/950672 to your computer and use it in GitHub Desktop.
from zope.interface import implements
from bravo.blocks import blocks
from bravo.ibravo import IAutomaton
class GrowSaplings(object):
implements(IAutomaton)
blocks = [blocks["sapling"].slot]
def feed(self, factory, coords):
print "Go Go Gadget sapling! %s" % (coords,)
name = "grow_saplings"
before = tuple()
after = tuple()
grow_saplings = GrowSaplings()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment