+ /*
+ if (Sector::current()->solids->get_tile_at(get_pos())->getAttributes() == 16) {
+ //HIT WATER
+ Sector::current()->add_object(new Electrifier(75,1421,1.5));
+ Sector::current()->add_object(new Electrifier(76,1422,1.5));
+ explode();
+ }
+ if (Sector::current()->solids->get_tile_at(get_pos())->getAttributes() == 48) {
+ //HIT ELECTRIFIED WATER
+ explode();
+ }
+ */
+ }
+ BadGuy::active_update(elapsed_time);
+}
+
+void
+Kugelblitz::draw(DrawingContext& context)
+{
+ sprite->draw(context, get_pos(), layer);
+
+ //Only draw light in dark areas
+ context.get_light( get_bbox().get_middle(), &light );
+ if (light.red + light.green < 2.0){
+ context.push_target();
+ context.set_target(DrawingContext::LIGHTMAP);
+ sprite->draw(context, get_pos(), layer);
+ lightsprite->draw(context, get_bbox().get_middle(), 0);
+ context.pop_target();