Egg.__init__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
1
from intelligine.synergy.object.BaseBug import BaseBug
2
from intelligine.cst import TYPE_NURSERY, TYPE, SMELL_EGG, COL_SMELL
3
4
5
class Egg(BaseBug):
6
7
    def __init__(self, collection, context):
8
        super().__init__(collection, context)
9
        context.metas.list.add(TYPE, self.get_id(), TYPE_NURSERY)
10
        self._life_points = 1
11
        self._add_col(COL_SMELL)
12
        self._set_smell(SMELL_EGG)
13