1061 |
{ |
{ |
1062 |
class BrickMagic : public Stone { |
class BrickMagic : public Stone { |
1063 |
CLONEOBJ(BrickMagic); |
CLONEOBJ(BrickMagic); |
1064 |
const char *collision_sound() {return "st-swap";} |
const char *collision_sound() {return "st-stone";} |
1065 |
public: |
public: |
1066 |
BrickMagic() : Stone("st-brick_magic"), state(BRICK) {} |
BrickMagic() : Stone("st-brick_magic"), state(BRICK) {} |
1067 |
private: |
private: |
1071 |
if( state == BRICK) |
if( state == BRICK) |
1072 |
{ |
{ |
1073 |
if (wielded_item_is(sc.actor, "it-magicwand")) { |
if (wielded_item_is(sc.actor, "it-magicwand")) { |
1074 |
|
play_sound("st-magic"); |
1075 |
state = GLASS; |
state = GLASS; |
1076 |
set_model("st-glass"); |
set_model("st-glass"); |
1077 |
laser::MaybeRecalcLight(get_pos()); |
laser::MaybeRecalcLight(get_pos()); |