Closed kevingranade closed 11 years ago
Shopping cart races? Post-apocalyptic Jackass?
Seriously though, I like the sound of this a lot.
If wheels = # of sqaures, return true.
Allows not just for stuff on casters, but the wheelie bike proposed in another issue, unicycles, segways, and so forth.
This is related to #3261. Also, if we ever get NPCs fixed, post-apocalyptic "Jackass" NEEDS to be a faction. Based out of old TV stations, driving motorized shopping carts, still broadcasting their show to anyone who's still alive to watch. We also need roaming NPC group of King Arthur and his knights in power armor wandering around.
I'm not really a fan of having single-wheel vehicles "just work", how about a "stable" flag for casters and other extra-stable wheel types (gyrostabalised or active-balance wheels) that allows it?
Hmm the caster and "stable" flag sounds promising, but active-balance wheels sound like we're cramming too much tech into one part that is difficult to replace if you accidentally drive over a nail board. Actually now that I think of it, how would you STEER a one-wheel vehicle? Here's an idea; have casters have the "stable" flag which allows one square vehicles, but is slow and hard to steer. For higher-performance vehicles, you need a special wheel with a "gyrowheel" flag (craftable with two regular wheels with mechanics skill or findable on vehicles like a Segway or [Uno](http://en.wikipedia.org/wiki/Uno%28dicycle%29) as WELL as a "gyro control processor", again either findable on appropriate vehicles or crafted from various electronic parts with electronics skill. This way, if you get a flat, you're only replacing the wheels and not the electronic components as well. Or an unlucky hit by a zed, "Critical Hit - Gyro" (cookie to whoever remembers that one) could render your vehicle undrivable until repairs are made.
Can be closed.
(Guess I got the "Closes" notation in my PR description wrong. Now I know not to do that again.)
The vehicle::valid_wheel_config() method unconditionally rejects vehicles that have less than two wheels, which leaves shopping carts undriveable. Perhaps add an exception to allow single-tile vehicles to be driveable if the wheel is of type "casters" (or has an appropriate flag)?