it is working

This commit is contained in:
2023-01-14 10:57:38 +01:00
parent 692b932302
commit 058eea02b2
6 changed files with 33 additions and 32 deletions
-19
View File
@@ -1,23 +1,4 @@
import numpy as np
from ai_economist.foundation.entities.resources import Resource, resource_registry
@resource_registry.add
class RawGem(Resource):
"""Raw Gem that can be processed further"""
name = "Raw_Gem"
color = np.array([241, 233, 219]) / 255.0
collectible = True
@resource_registry.add
class Gem(Resource):
"""Proccesed Gem. Craftable."""
name = "Gem"
color = np.array([241, 233, 219]) / 255.0
collectible = False
craft_recp= {"Raw_Gem": 1}
craft_labour_base= 1