25
edits
No edit summary |
No edit summary |
||
Line 37: | Line 37: | ||
GameObject User = ParentObject.pPhysics.Equipped; | GameObject User = ParentObject.pPhysics.Equipped; | ||
if (User == null) return; | if (User == null) return; | ||
if( User.pPhysics.CurrentCell != null ) | if (User.pPhysics.CurrentCell != null) | ||
{ | { | ||
if (User.pPhysics.CurrentCell.HasObjectWithPart("PlantProperties")) | if (User.pPhysics.CurrentCell.HasObjectWithPart("PlantProperties")) | ||
{ | { | ||
StatShifter.DefaultDisplayName = "camouflage"; | StatShifter.DefaultDisplayName = "camouflage"; | ||
StatShifter.SetStatShift(User, "DV", | StatShifter.SetStatShift(User, "DV", Bonus); | ||
} | } | ||
else | else |