642 |
Stonebrush() : Stone("st-stonebrush"), state(INVISIBLE) {} |
Stonebrush() : Stone("st-stonebrush"), state(INVISIBLE) {} |
643 |
private: |
private: |
644 |
enum State { INVISIBLE, BRUSH } state; |
enum State { INVISIBLE, BRUSH } state; |
645 |
void actor_hit(const StoneContact &sc) |
|
646 |
{ |
void actor_hit(const StoneContact &sc) { |
647 |
if( state == INVISIBLE) |
if( state == INVISIBLE) { |
|
{ |
|
648 |
if (wielded_item_is(sc.actor, "it-brush")) { |
if (wielded_item_is(sc.actor, "it-brush")) { |
649 |
play_sound("st-magic"); |
play_sound("st-magic"); |
650 |
state = BRUSH; |
state = BRUSH; |
651 |
set_model("st-rock4"); |
if (enigma::GameCompatibility == GAMET_PEROXYD) { |
652 |
|
set_model("st-likeoxydc-open"); |
653 |
|
} |
654 |
|
else { |
655 |
|
set_model("st-rock4"); |
656 |
|
} |
657 |
} |
} |
658 |
} |
} |
659 |
} |
} |