ru:: tiny saw

This commit is contained in:
Zeno Rogue
2026-04-06 11:46:57 +02:00
parent 315c64c5e5
commit 09ff94321f
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -549,6 +549,11 @@ struct saw: public entity {
void act() override;
};
struct tinysaw: public saw {
xy siz() override { return {8, 8}; }
string get_name() override { return "tiny " + mp().get_shape_name() + " circular saw"; }
};
struct weaksaw : public saw {
color_t color() override { return walls[wWeakWall].color; }
string get_name() override { return mp().get_shape_name() + " weak saw"; }
+5
View File
@@ -357,6 +357,11 @@ void load_room(fhstream& f, cell *c) {
b->base = std::move(r.entities.back());
r.entities.back() = std::move(b);
}
else if(cap == "TINYSAW") {
auto b = std::make_unique<tinysaw>(); nam(*b);
b->base = std::move(r.entities.back());
r.entities.back() = std::move(b);
}
else if(cap == "WOODSAW") {
auto b = std::make_unique<woodsaw>(); nam(*b);
b->base = std::move(r.entities.back());