Vanilla-Expanded / VanillaExpandedFramework

Vanilla Expanded Framework for RimWorld
Other
69 stars 34 forks source link

[KCSG] Pawns that spawn on mortars leave map once they run out of ammo #63

Open glencoe2004 opened 1 year ago

glencoe2004 commented 1 year ago

No logs because it doesn't throw any errors.

Steps to reproduce:

  1. Create a WorldObject with a CustomGenOption layout that includes mortars
  2. Go to the resulting map and wait for enemy mortars to run out of ammo
  3. Observe as mortar pawns leave map

Also, pawns leaving map seem to not attack colonists unless engaged first.

Pawns leaving the map may or may not be intended behavior. A possible solution could be to add a toggle that makes pawns spawned on mortars patrol the center of the map instead of leaving when their ammo is exausted.

KylianB commented 1 year ago

This commit should fix this, I'm now using the same code as vanilla.

glencoe2004 commented 1 year ago

This doesn't seem to fix the issue unfortunately, pawns will still leave the map once their ammo is exhausted