Checkpoint initial implementation
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
from tungston.core.world import World
|
||||
from tungston.generator.markdown.report import Report
|
||||
|
||||
|
||||
# Class ############################################################################################
|
||||
|
||||
class MineralReport(Report):
|
||||
|
||||
def build(self):
|
||||
for mineral in self.world.minerals.all():
|
||||
self.line(f"# Mineral: {mineral.name}")
|
||||
self.line()
|
||||
|
||||
self.indent()
|
||||
for replacement in mineral.replacements:
|
||||
self.line(str(replacement))
|
||||
self.outdent()
|
||||
|
||||
self.line()
|
||||
Reference in New Issue
Block a user