Type for robot capsules is wrong
Moderator: Bilka
Type for robot capsules is wrong
All three of the robot capsules pages have "Prototype type projectile", which isn't right. The other capsules (grenades/slowdown/poison) are set the same, but they actually spawn a projectile, but the robot capsules spawn a combat-robot and should link to https://wiki.factorio.com/Prototype/CombatRobot instead.
Re: Type for robot capsules is wrong
The combat robot capsules spawn projectiles (e.g. https://github.com/wube/factorio-data/b ... .lua#L1078) which then spawn the robots (e.g. https://github.com/wube/factorio-data/b ... s.lua#L179).
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Type for robot capsules is wrong
Yes but the projectile isn't the point of the capsule - the robot that's spawned is. The prototype types aren't any use to anyone but modders, and how many times is someone going to look at that page because they want the projectile prototype info?
Of the three prototypes involved here, capsule->projectile->combatrobot, it seems really weird to use the middle one and not the first or last.
Of the three prototypes involved here, capsule->projectile->combatrobot, it seems really weird to use the middle one and not the first or last.
Re: Type for robot capsules is wrong
The middle one is used because its prototype name matches the prototype name of the item. I would argue that using the robot directly would be confusing, because it uses a different prototype name and even in-game name. E.g. the capsule is named "Distractor capsule", the spawned robot is named "Distractor". However, the wiki pages are named after the item and the recipe, and describe them from that perspective (-> "Distractor capsule"). And from that perspective, the priority of listing prototypes with matching names in the infobox is entity > item > recipe, same as all other pages.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.