Sun Gun

Sun Gun is an unused plant which was suppose to appear in Lost City, but was scrapped for unknown reasons. It somewhat borrows Magnet-shroom's coding to a degree, although will crash the game if set to use that plant's sprites and animations. When planted, it will attract sun for a while before shooting it as a burst in the general direction towards the zombies at random degrees. It is non-functional and was only so in a few versions in the Chinese version of Plants vs. Zombies 2.

## Almanac

**Note: The stats shown below only apply to Level 1.**

<Missing SUNGUN\_DESCRIPTION\_HEADER>

<Missing SUNGUN\_DESCRIPTION>

**<Missing SUNGUN>**

<Missing SUNGUN\_DESCRIPTION\_HEADER>

<Missing SUNGUN\_DESCRIPTION>

## Gallery

HD Sun Gun.pngHD Sun GunSun Gun Almanac Entry.pngAlmanac entry.Sun Gun Tool Tip.pngTool tip.Sun Gun (Patched) - Scrapped Lost City Plant - Plants vs. Zombies 2Video showcasing the unused plant. Patched using placeholder assets found in the Chinese version release of Lost City.
## Code

```
       {
           "objclass": "PlantType",
           "aliases": [
               "sungun"
           ],
           "objdata": {
               "TypeName": "sungun",
               "PlantFramework": "PlantSunGun",
               "PlantResourceGroups": [
                   "PlantSunGun",
                   "PlantSunGunAudio"
               ],
               "PlantPreviewResourceGroups": [
                   "PlantSunGun"
               ],
               "Properties": "RTID(SunGunDefault@PlantProperties)",
               "AnimRigClass": "PlantAnimRig_SunGun",
               "PopAnim": "POPANIM_PLANT_AKEESUNGUN",
               "HomeWorld": "lostcity",
               "IntegerID": 80,
               "HideInPlantViewers": true
           }
       },
       {
           "objclass": "SunGunProps",
           "aliases": [
               "SunGunDefault"
           ],
           "objdata": {
               "Cost": 50,
               "Hitpoints": 300.0,
               "PacketCooldown": 15.0,
               "StartingCooldown": 10.0,
               "PlantGridType": "ground",
               "ArtCenter": {
                   "x": 99,
                   "y": 115
               },
               "HitRectAdjust": {
                   "mX": 15,
                   "mY": 25,
                   "mWidth": -35,
                   "mHeight": -10
               },
               "PlantStats": [
                   {
                       "Type": "recharge",
                       "Value": "recharge3"
                   }
               ],
               "ScaledProps": [
                   {
                       "Key": "MasteryBoostChance",
                       "Formula": "boost_mastery",
                       "Arg1": 10,
                       "Arg2": 0.01,
                       "comment": "arg2 every arg1 levels"
                   },
                   {
                       "Key": "MasteryResistancePiercing",
                       "Formula": "flat",
                       "Arg1": 0.01
                   }
               ],
               "AngleVarianceInDegrees": 45.0,
               "Actions": [
                   {
                       "Type": "projectile",
                       "Projectile": "RTID(SunProjectileDefault@ProjectileTypes)",
                       "SpawnOffset": {
                           "x": 20.0,
                           "y": -60.0
                       }
                   }
               ],
               "ZenGardenSproutWeight": 0,
               "ZenGardenBoostCost": 10,
               "ZenGardenDurationOverrideSeconds": 12600,
               "IsConsumable": true
           }
       }

```