1class PileOfWoodenPlanks
extends ItemBase
14 RemoveProxyPhysics(
"stage_1" );
15 RemoveProxyPhysics(
"stage_2" );
16 RemoveProxyPhysics(
"stage_3" );
27 ShowSelection (
"stage_3" );
28 HideSelection (
"stage_2" );
29 HideSelection (
"stage_1" );
31 AddProxyPhysics(
"stage_3" );
34 if ( quantity > quantity_max *0.33 && quantity <= quantity_max *0.66 )
37 HideSelection (
"stage_3" );
38 ShowSelection (
"stage_2" );
39 HideSelection (
"stage_1" );
41 AddProxyPhysics(
"stage_2" );
44 if ( quantity > 0 && quantity <= quantity_max *0.33 )
47 HideSelection (
"stage_3" );
48 HideSelection (
"stage_2" );
49 ShowSelection (
"stage_1" );
51 AddProxyPhysics(
"stage_1" );
57 HideSelection (
"stage_3" );
58 HideSelection (
"stage_2" );
59 HideSelection (
"stage_1" );
66 super.EEItemLocationChanged(oldLoc, newLoc);
75 int available_planks = needed_planks;
85 return available_planks;
88 override bool SetQuantity(
float value,
bool destroy_config =
true,
bool destroy_forced =
false,
bool allow_client =
false,
bool clamp_to_stack_max =
true)
90 bool result = super.SetQuantity(value, destroy_config, destroy_forced, allow_client, clamp_to_stack_max);
bool AddQuantity(float value, bool destroy_config=true, bool destroy_forced=false)
add item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity re...
override float GetQuantity()
override int GetQuantityMax()
override bool CanPutIntoHands(EntityAI parent)
void PileOfWoodenPlanks()
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
override bool CanPutInCargo(EntityAI parent)
int RemovePlanks(int needed_planks)
proto native CGame GetGame()