added rock as a non-pickupable entity

This commit is contained in:
jonspacz 2020-04-05 23:59:07 +02:00
parent 2af94a27e9
commit c7793f5c43
3 changed files with 15 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

View File

@ -26,5 +26,19 @@
"thirst" : 2, "thirst" : 2,
"hunger" : 10 "hunger" : 10
} }
},
{
"name" : "rock",
"position" : {
"x": 13,
"y": 1
},
"isPickupable" : false,
"effect" : {
"hp" : 0,
"stamina" : 0,
"thirst" : 0,
"hunger" : 0
}
} }
] ]

View File

@ -30,6 +30,7 @@ class Player(Entity):
if self.rotation == Rotations.NORTH: if self.rotation == Rotations.NORTH:
return (0, -1) return (0, -1)
elif self.rotation == Rotations.SOUTH: elif self.rotation == Rotations.SOUTH:
pass
# Returns given statistic # Returns given statistic
def getStatistic(self, stat): def getStatistic(self, stat):