Skip to content

Instantly share code, notes, and snippets.

@Aerodos12
Created July 29, 2019 00:58
Show Gist options
  • Save Aerodos12/8f0470150ff18bf988542d5ed0f638ad to your computer and use it in GitHub Desktop.
Save Aerodos12/8f0470150ff18bf988542d5ed0f638ad to your computer and use it in GitHub Desktop.
WaterBody
"""
Bodies of water
Water Bodies are simple containers that has no location of their own (are vast and can host ships).
"""
from evennia import DefaultRoom
class WaterBody(DefaultRoom):
"""
Bodies of water (WaterBody) are Rooms in which act as a
massive naval map or a series of maps.
See examples/object.py for a list of
properties and methods available on all Objects.
"""
combat_size_x = 5
combat_size_y = 5
@property
def size(self):
return (self.combat_size_x + 1, self.combat_size_y + 1)
class Sea(WaterBody):
"""
A 16 by 16 WaterBody that is bigger than a lake, but smaller than an Ocean.
"""
combat_size_x = 16
combat_size_y = 16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment