Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///@description create hive type
- ///@arg maxHoney the maximum amount of honey that a hive can make
- ///@arg maxFrames the maximum number of frames
- ///@arg startHiveHealth starting health of the hive
- var argNum = argument_count;
- if (!ds_exists(ds_hive_types, ds_type_grid)) {
- ds_hive_types = ds_grid_create(argNum,1);
- var height = 1;
- } else {
- var height = ds_grid_height(ds_hive_types);
- ds_grid_resize(ds_hive_types,argNum,height+1)
- height += 1;
- }
- var yy = height -1;
- var i = 0; repeat(argNum) {
- ds_hive_types[# i,yy] = argument[i];
- i += 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement