]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Resource.hpp
randomize creature properties a bit
[blobs.git] / src / world / Resource.hpp
index 6250fc67ac4a9424cb305dc7e66b14f12538dfb5..492a7f81f1d21a5a4cb90cbf89cfefed02a2760f 100644 (file)
@@ -12,7 +12,9 @@ struct Resource {
        std::string name;
        std::string label;
 
-       int id;
+       double density = 1.0;
+
+       int id = -1;
 
        enum State {
                SOLID = 0,
@@ -22,7 +24,7 @@ struct Resource {
        };
        // the resource's natural state
        // TODO: something about temperature and pressure and stuff
-       int state;
+       int state = SOLID;
 
 };