Egg   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 6 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