public void SetCropType(CropsType type) { CropType = type; if (type == CropsType.Wheat) TileType = Map.TileType.WheatCrop; }
public CropMapElement(Vector3Int position, CropsType type) : base(position) { TileType = Map.TileType.NoCrop; ElementType = MapElementType.Crop; ElementEffect = MapElementEffect.Nonmoveable; CropType = type; }
public void ChangeCrop(CropsType type) { Worked = 0; foreach (CropBase c in _crops) { c.ChangeCrop(type); } }
public void SetCropType(CropsType type) { CropType = type; if (type == CropsType.Wheat) TileType = Map.TileType.WheatCrop; else if (type == CropsType.WhiteMushrooms) TileType = Map.TileType.WhiteMushroom; }
public CropBase(Vector3Int position, CropsType cropType) : base(position, MapElementType.Crop, 1) { CropType = cropType; SetDimentions(new Vector3Int(1, 1, 1)); _mapElement = new CropMapElement(position, cropType); AddMapElement(0, 0, 0, _mapElement); CraftPoints = 100; CraftPointsNeeded = 100; UpdateMapElementAlpha(); }
public void ChangeCrop(CropsType type) { CropType = type; _mapElement.SetCropType(type); }
private void Input() { // Decides marking if (MouseInput.IsLeftMouseClicked() && IsHighlightValid() && _cursorState == CursorState.Free) { StartMarking(); } else if (MouseInput.IsRightMouseClicked() && _cursorState == CursorState.Marking) { StopMarking(); } else if (MouseInput.IsLeftMouseClicked() && _cursorState == CursorState.Marking) { ExecuteMarking(); } if (KeyboardInput.IsKeyClicked(Keys.P)) { _cropType = CropsType.Wheat; } if (KeyboardInput.IsKeyClicked(Keys.O)) { _cropType = CropsType.Cannabis; } }
public static float PlantOnCrop(Dwarf d, CropsType crop) { return 0.01f; }
public static double PlantOnCrop(Dwarf d, CropsType crop) { return 0.1 * DwarfRules.GetToolModifier(d); }
public Crops(CropsType type) { crops_type = type; itemInfoSet(); }
public void ChangeCrop(CropsType type) { _nextCropType = type; }